๐Ÿ”— API Patterns and Practices: gRPC
Chapters Examples Bibliography GitHub โ†—
Home / HTTP/2 & the Four RPC Types
Part 3 4 chapters

HTTP/2 & the Four RPC Types

Explain why gRPC is fast and implement and choose among all four RPC shapes.

Chapter 6

HTTP/2 foundation and why gRPC is fast

Streams, frames, multiplexing, and HPACK โ€” the HTTP/2 machinery gRPC rides on, and a measured comparison of binary protobuf against proto3 JSON on the same message.

20 min readRead โ†’
Chapter 7

Unary RPCs and the generated code

The stub-to-stub path for a unary call in both stacks, the channel/stub split that governs every gRPC client, and the reuse rule that keeps it fast.

20 min readRead โ†’
Chapter 8

Server-streaming

WatchShipment as the live-tracking hot path: one request opening a stream of ordered TrackingEvents, the half-close that ends it, and the generated Multi/async-generator shapes on each stack.

20 min readRead โ†’
Chapter 9

Client-streaming and bidirectional

TrackingService.ReportPositions and .Sync โ€” folding a stream of requests into one answer, and running two independent directions on one connection.

19 min readRead โ†’
โ† Previous part Protocol Buffers: the Contract Language Next part โ†’ Reliability: Deadlines, Errors & Interceptors

API Patterns and Practices: gRPC

Designing gRPC APIs well, with runnable examples in Quarkus and Python against one Protobuf contract.

Site

  • Outline
  • Bibliography

Reference

  • Protocol Buffers โ†—
  • Buf โ†—
  • gRPC docs โ†—
  • View on GitHub โ†—
  • Issues โ†—
Open source ยท MIT Last built 2026-10-17