Skip to the guide

gRPC and protocol buffers

IntermediateConcept3 pages

gRPC is how many companies' services call each other inside the data centre. You describe each call and message in a schema file, a tool generates client and server code in your languages, and the calls travel over HTTP/2 in a compact binary format called protocol buffers (protobuf). In an interview it's the usual answer to "how do your internal services talk?", and the probe is how two services keep working while one of them changes.

A pre-printed form

Two offices send each other orders on a printed form they both keep copies of. Box 1 is the customer number, box 2 the item, box 3 the quantity. A clerk doesn't write "Customer number: 123456789"; she writes 123456789 in box 1. The form is quicker to fill in and to read than a letter, and nothing is ambiguous. But the reader needs the same form to make sense of it, and if one office quietly changes what box 3 means, the other reads the wrong numbers without noticing.