Protocol Buffer

Definition - What does Protocol Buffer mean?

A protocol buffer is a platform- and language-neutral automated mechanism for serializing structured data. A protocol buffer is smaller, simpler and faster than XML. Initially developed at Google to deal with an index server response protocol, the company has provided a code generator under an open-source license for different languages. Protocol buffers are extremely useful for developing applications for storing data or for communication.

Techopedia explains Protocol Buffer

Currently, protocol buffers support generated code in programming languages such as C++, Java and Python. Protocol buffers are designed to be smaller and faster than XML and aim for both simplicity and performance. Similar to Microsoft Bond or Apache Thrift protocols, Protocol buffers offer a concrete RPC protocol stack to be used for defined services. A protocol buffer makes use of an interface description language that explains the data structure and an application which generates the source code based on that description. The source code is then used in parsing the bytes of the structured data.

There are several advantages of using protocol buffers over XML. Protocol buffers are simpler to use, and they are 3–10 times smaller than XML with 20–100 times the speed. Another advantage is that they are less ambiguous and can generate data access classes that are simple to develop programmatically.

There are few drawbacks associated with protocol buffers. Protocol buffers may not be an effective solution, especially for modeling a text-based document. Unlike XML, which is human readable and human editable, protocol buffers in their native state are not human readable or human editable. Protocol buffers do not have a self-describing capability like XML.

Protocol buffers are used in storage systems as well as in RPC systems.

Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.