How are Protocol Buffers used?

Stephane Maarek | AWS Certified Cloud Practitioner,Solutions Architect,Developer
A free video tutorial from Stephane Maarek | AWS Certified Cloud Practitioner,Solutions Architect,Developer
Best Selling Instructor, Kafka Guru, 9x AWS Certified
4.7 instructor rating • 41 courses • 922,189 students

Learn more from the full course

Complete Guide to Protocol Buffers 3 [Java, Golang, Python]

Google Protobuf with examples and exercises. Code in Java Go Python. Say Goodbye to JSON & XML. Pre-req to gRPC

03:32:38 of on-demand video • Updated July 2021

  • Write simple and complex .proto files
  • Practice Exercises to Confirm the Learnings
  • Leverage Imports and Packages appropriately
  • Generate Code using `protoc` in any language
  • Code in Java with Protocol Buffers
  • Understand how Data Evolution works for Protobuf
  • Learn about advanced Protocol Buffers concepts
English [Auto] So before we get into the course, I want to give you an overview of how political buffer is used and basically the idea is to share data across programming languages so he knows it looks like we'll start with a profile and that's human readable. We'll see this in this course. Then we'll generate code automatically. And that's another part of this course. You can generate code in pretty much any language, Java, Python or all of the programming languages. It's actually amazing. Next, using these programming languages, you're going to create objects or data and then you're going to serialize that data by encoding and decoding it automatically. The advantage that that serialized data on the right hand side can be read by Python or go or any programming language. The beautiful things is that this serialized data is universal. Every language will understand it, and that's awesome. That means that's coming from the left hand side with a human readable protocol. The definition we can get to serialize data using any favorite programming language, and that's why it is so popular. So how is it used? Well, some databases may have support for protocol, but for data formats there's a lot of AAPC framework. But that's out of this course, out of scope for this course, including Gypsie by Google that use protocol but to exchange data. And there's also Google using protocol Buffer's API like data for all their API. So really it's used everywhere. Finally, there's some big projects like OECD bakeries that use protocol buffers for transporting data. Overall, it is quite old data formats and it's really, really nice and used by many people. So in this course or in the literature, you may see that there is protocol, but for two or protocol Bufford three, basically mid 2016, Google has released a third iteration, the third version of protocol buffers, and the name is Proteau three. So in this course we will only look at Proteau three because it's the most common format will be use forward as the best compatibility across all the languages. And it's just a really good improvement over to it's also the easiest to learn. And that's why I'm excited to you. OK, so this is, of course, that's extremely updated on the latest protocol, but versions and it's used massively across all the companies. I'm glad you're here with me. Let's get started.