APIs
gRPC and Protobuf: free-recall review
Retrieval beats re-reading. For each prompt, say or write a full answer from memory before you open the model answer — the effort of recall is what makes the field-number contract and the streaming shapes stick.
Reconstruct the unit’s spine — why the wire carries numbers not names, what makes a schema change safe, the four call shapes, how deadlines propagate, and where gRPC belongs versus REST — without looking back.
- 01What exactly does Protobuf put on the wire, and what does that buy and cost versus JSON?
- 02Why is renaming a field free but renumbering or reusing a field number a production disaster?
- 03Explain backward and forward compatibility in Protobuf and the two mechanisms that provide them.
- 04Name the four gRPC call shapes and the deciding question for picking one.
- 05How do gRPC deadlines work, and what is the classic confusing failure they cause?
- 06When does gRPC win over REST/JSON, and why can't the browser speak it directly?
If you could reconstruct each answer from memory, you hold the unit’s spine: the wire carries field numbers and values, never names, which is why renaming is free and renumbering is corruption; add-only evolution with reserved gives two-way backward/forward compatibility; the four call shapes are chosen by who streams; deadlines propagate and can fail a caller whose work actually landed, so idempotency is the fix; and gRPC belongs between your services while REST/JSON or Connect-RPC stays at the browser edge.