From the course: Building Java Microservices with gRPC
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Understand protocol buffers
From the course: Building Java Microservices with gRPC
Understand protocol buffers
- [Instructor] Let us now understand protocol buffers, which is the second most important foundation block in the gRPC framework. Let's say you have an object called employee. It has three fields: an ID, a name and a designation, and you want to transport this employee object over a network. What are your options? Serialization? But that leads to performance and memory issues. You can also use XML, but XML is strict to deal with. It is difficult to navigate an XML and the XML payload transmitted between client and server is very heavy, which eventually leads to performance problems again. Protocol buffers is a project owned by Google, and this provides you a way to serialize structured data more efficiently. They are platform and language neutral, so you really don't have to bother on what language are you trying to implement your service. Protocol buffers is used as the interface definition language, or as we…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.