Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Introduction to Protocol Buffers

Shulou Source: shulou.com Published: 2022-06-03 05:46:00 11月16日 Update

Document editing and continuous integration status:

The Protocol Buffer Chinese documents of this document are orchestrated by Asciidoctor.

Http://docs.ossez.com/protocol-buffers-docs/index.html (the content in this WIKI will be synchronized with the version released online)

Google Protocol Buffer (Protobuf for short) is a mixed language data standard within Google, which has more than 48162 message format definitions and more than 12183 .proto files.

Protocol Buffer related fast navigation

Link name

Link address

Protocol Buffer Chinese documentation http://docs.ossez.com/protocol-buffers-docs/index.html official documentation https://developers.google.com/protocol-buffers/docs/overview sample and test code https://github.com/cwiki-us-demo/protocol-buffers-demo-java

If you search on the Internet, you may see the following description.

Google Protocol Buffer (Protobuf for short) is a mixed language data standard within Google, which has more than 48162 message format definitions and more than 12183 .proto files.

They are used in RPC systems and continuous data storage systems.

Protocol Buffers is a lightweight and efficient structured data storage format that can be used for structured data serialization, or serialization.

It is very suitable for data storage or RPC data exchange format. Can be used in communication protocols, data storage and other fields of language-independent, platform-independent, extensible serialized structural data format.

API in C++, Java and Python is currently available.

In the actual data processing, we need to use JSON to serialize the data, but also considering that the data of JSON is too large when it is transferred, and there are a lot of junk files that are not needed. We just took into account the features provided by Protocol Buffer.

Data serialization and deserialization

Serialization: the process of converting data structures or objects into binary strings.

Deserialization: the process of converting a binary string generated during serialization into a data structure or object.

Https://www.cwiki.us/display/ProtocolBuffers/Protocol+Buffers

Tags: Data sequence format structure document language storage file procedure binary company object message data structure time standard current system link Chinese Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Xiaomi Microsoft Redmi macOS