Protocol Buffer

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.


Related Terms

Margaret Rouse

Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical, business audience. Over the past twenty years her explanations have appeared on TechTarget websites and she's been cited as an authority in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine and Discovery Magazine.Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages. If you have a suggestion for a new definition or how to improve a technical explanation, please email Margaret or contact her…