What are Protocol Buffers & When to Use them | Protobuf vs JSON

preview_player
Показать описание
What are Protocol buffers? Well, Protocol Buffers is a method of serializing structured data. Curious? Watch the video to learn more about them.

After watching this video, you'll be able to answer,
- What are protobufs
- What is protocol buffer definition
- Protocol buffers vs JSON
- When to use JSON over Protobufs
- Benefits of protocol buffers
- What is protobuf and why use it
- Protobuf meaning
- Reasons to use protocol buffers
- What are protocol buffers and its features
- What are .proto files
- Protobuf vs JSON

Like my content? Be sure to smash that like button and hit Subscribe to get the latest updates!

Let's get social!

#WhiteboardProgramming #Protobuf #ProtocolBuffers
Рекомендации по теме
Комментарии
Автор

Proto Buffers are used for serializing data for transmission. Like Json, xml.
- json, xml are not optimised where we have to send data between multiple microservices in a platform neutral way. (Language Independent)
- faster than json, xml by removing many responsibilities and only focus on serialisation.(Fast)
- the definition of data to be serialized is written in configuration files called proto files, with the extention .proto
- these proto files will consist of configurations known as messages.
features
1. data is transmitted as binary. takes less space than raw string so fast
2. Unlike json, xml here we have separation of context and data.
3. data transmitted in message format

 

Json is used when
- data needs to be human readable
- data from service is directly consumed by web browser
- when server side application is written in js.

TierCSE
Автор

This would be much better without the background music, it makes it hard to focus on what's being said

KathyHickok
Автор

Thank you for the video sir!! Keep it up!!

lholhofox
Автор

I know this video is a bit old but it is completely feasible to compile proto messages into JavaScript now. So you can use it on a JS server application or even ship it in the browser as well. I ran some benchmarks at my job for this use case and it is usually even faster than JSON. I don't really buy the argument that it shouldn't be used in JS just because JSON literally is a subset of JavaScript objects and it is easier to implement. Most modern languages make it trivial to implement json encoders and decoders. It is not significantly more or less difficult to introduce into any language as long as you have a compiler.

David-gjdc
Автор

A good explanation of what are protocol buffers and why I should try these... It would a good help if you share an inhand experience of protobuf

Gamesgainonline
Автор

I enjoy your explanation. Thanks for creating this!

benjonyc
Автор

thank you, Your english is very good even for me, a not native english speaker. thx from brazil.

pok
Автор

Thank you for this. Can't understand anything still though lmao

olliglorioso
Автор

Too fast and unnecessary background music.

svddwd
Автор

except the one who already knows what you are saying, I don't think this content adds any value. This is like a bullet point revision over really helping people learn, whats the point of such video.. very bad..

NS-tejx
Автор

Dude slow down couldn't understand one bit of this

okaberintarou
visit shbcf.ru