Protocol Buffers Crash Course

Protocol Buffers Crash Course

270.808 Lượt nghe
Protocol Buffers Crash Course
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 google-protobuf Source Code https://github.com/hnasr/javascript_playground/tree/master/protobuff Resource protoc download https://github.com/protocolbuffers/protobuf/releases protocol buffer javascript doc https://github.com/protocolbuffers/protobuf/tree/master/js 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 https://www.youtube.com/playlist?list=PLQnljOFTspQXNP6mQchJVP3S-3oKGEuw9 💾 Database Engineering Videos https://www.youtube.com/playlist?list=PLQnljOFTspQXjD0HOzN7P2tgzu7scWpl2 🛰 Network Engineering Videos https://www.youtube.com/playlist?list=PLQnljOFTspQUBSgBXilKhRMJ1ACqr7pTr 🏰 Load Balancing and Proxies Videos https://www.youtube.com/playlist?list=PLQnljOFTspQVMeBmWI2AhxULWEeo7AaMC 🐘 Postgres Videos https://www.youtube.com/playlist?list=PLQnljOFTspQWGrOqslniFlRcwxyY94cjj 🚢Docker https://www.youtube.com/playlist?list=PLQnljOFTspQWsD-rakNw1C20c1JI8UR1r 🧮 Programming Pattern Videos https://www.youtube.com/playlist?list=PLQnljOFTspQV1emqxKbcP5esAf4zpqWpe 🛡 Web Security Videos https://www.youtube.com/playlist?list=PLQnljOFTspQU3YDMRSMvzflh_qXoz9zfv 🦠 HTTP Videos https://www.youtube.com/playlist?list=PLQnljOFTspQU6zO0drAYHFtkkyfNJw1IO 🐍 Python Videos https://www.youtube.com/playlist?list=PLQnljOFTspQU_M83ARz8mDdr4LThzkBKX 🔆 Javascript Videos https://www.youtube.com/playlist?list=PLQnljOFTspQWab0g3W6ZaDM6_Buh20EWM 👾Discord Server https://discord.gg/CsFbFce Support me on PayPal https://bit.ly/33ENps4 Become a Patreon https://www.patreon.com/join/hnasr? Stay Awesome, Hussein