๐Ÿ”— API Patterns and Practices: gRPC
Chapters Examples Bibliography GitHub โ†—
Home / Reliability: Deadlines, Errors & Interceptors
Part 4 3 chapters

Reliability: Deadlines, Errors & Interceptors

Make calls fail correctly and bound their own blast radius.

Chapter 10

Deadlines, timeouts and cancellation

A deadline as an absolute budget that travels with a call, propagated down a chain, and the cancellation that follows when it runs out.

21 min readRead โ†’
Chapter 11

Error and exception handling

Canonical status codes as the contract, the rich error model built from google.rpc.Status and its typed details, and the line between a retryable and a non-retryable failure.

20 minRead โ†’
Chapter 12

Interceptors

The interceptor chain as gRPC's cross-cutting seam: logging and timing on every call, an auth hook in front of the handler, and where error mapping and request-id propagation belong.

18 min readRead โ†’
โ† Previous part HTTP/2 & the Four RPC Types Next part โ†’ Schema Evolution & the Living Contract

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