Protocol buffers
In their official documentations, protocol buffers are defined as a language-neutral, platform-neutral mechanism for serializing structured data. Let's take a look at an example to help build a clear picture of what protocol buffers are.
Assume that you have two microservices in your application; the first microservice (service 1) has collected information about a new customer and would like to send it to the second microservice (service 2). This data is considered structured data because it contains structured information such as the customer name, age, job, and phone numbers. One way to send this data is to send it as a JSON document (our data format) over HTTP from service 1 to service 2. However, what if we want to send ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access