Protocol buffers
https://developers.google.com/protocol-buffers
By Manuel Correa
What are protocol buffers?
● Flexible, efficient, and automated mechanism for
Serializing data
● Over XML and JSON, Proto-Buffer is
o Binary
o Simpler
o Faster
o Smaller (space)
o Generates access classes as part of the framework
How does it work?
.proto file
What languages translate to?
● Java, C++, C, Ruby, Python, C#, Clojure, Lisp, Dart,
Erlang, Go, Android, Javascript, Matlab, Perl, Objective
C, PHP, Scala, VB, Julia, Lua, and …
● Applications
o Internal APIs
o Queue systems
o Database Objects
Quick dirty Space performance
Who is using it? source: documentation, slideshare, etc..
● Google
● Twitter
● Oracle
● ...
Reference
● Google Developer Guide
● JavaOne presentation: RESTFul Protocol
buffers
● Hadoop and Protocol Buffers at Twitter

Protocol buffers