Free views, likes and subscribers at YouTube. Now!
Get Free YouTube Subscribers, Views and Likes

Protocol Buffers Crash Course

Follow
Hussein Nasser

Protocol Buffers (Protobuf) is a method of serializing structured data useful for transmitting data over the wire or storing it. in this video I want to build a application with pure JSON and then rebuild the same application using protocol buffers and finally compare compare the results. I will also the pros and cons of Protocol buffers.

0:00 Intro
1:30 Write an App with JSON
8:00 ReWrite the App with Protobuf
8:20 Writing .proto file
14:00 protoc
19:00 Using protobuf structures
28:20 Pros & Cons of Protocol Buffers

Benefits of ProtoBuff
* Schema
* Binary compact size
* Language neutral

Cons
* Have to have structured data (barrier to entry)
* More involved processed for small applications.
* Have to make sure to update compiled boilerplate code (bugs, security vulnerability, etc.)
* hard to use with JSON based application (Javascript/browser)


protoc compiler
protoc js_out=import_style=commonjs,binary:. employees.proto

npm install googleprotobuf

Source Code
https://github.com/hnasr/javascript_p...


Resource

protoc download
https://github.com/protocolbuffers/pr...

protocol buffer javascript doc
https://github.com/protocolbuffers/pr...


Guys! after I uploaded the video I learned about flatbuffers which are pretty awesome.. too bad I didn’t give them an honorable mention in the video.




Software Architecture Videos
   • Software Architecture  

Database Engineering Videos
   • Database Engineering  

Network Engineering Videos
   • Network Engineering  

Load Balancing and Proxies Videos
   • Proxies  

Postgres Videos
   • PostgresSQL  


Docker
   • Docker  

Programming Pattern Videos
   • Programming Patterns  

Web Security Videos
   • Web Security  

HTTP Videos
   • HTTP  

Python Videos
   • Python by Example  

Javascript Videos
   • Javascript by Example  

Discord Server   / discord  

Support me on PayPal
https://bit.ly/33ENps4

Become a Patreon
  / hnasr  

Stay Awesome,
Hussein

posted by armuguetz0v