Protocol Buffer Syntax and Encoding
Protocol Buffer Syntax and Encoding Principles Originally published in Chinese on 2021-04-26; this English edition preserves the original scope and technical context. [toc] Serialization refers to the process of converting structured data into a format that is easy to store or transmit. Protocol Buffer, abbreviated as ProtoBuf, is a language- and platform-independent serialization tool developed by Google and open-sourced in 2008. Compared to commonly used serialization tools such as XML, JSON, YAML, and CSV, ProtoBuf has advantages including smaller serialized data size, faster serialization and deserialization, lower maintenance cost through the use of proto files, and backward compatibility. However, because its data exists in the form of binary data streams, it also has the disadvantage of being unreadable to humans. ...