API Design: REST, GraphQL & gRPC
Resource modeling, HTTP semantics, problem+json errors, cursor pagination, idempotency keys, ETags, bulk operations, GraphQL (DataLoader, cost limits, persisted queries), gRPC (protobuf, deadlines, streaming) and how to choose between them.
About 100 minutes · 15 exam questions · 8 interview questions · 2 code labs
What you will learn
- Resource modeling and the Richardson Maturity Model
- HTTP semantics: methods, idempotency and status codes
- Error model: RFC 9457 problem details
- Collections: pagination (offset vs cursor), filtering and sorting
- Idempotency keys for POST
- ETags and conditional requests
- Bulk APIs and partial failures
- GraphQL: schema design, N+1 and DataLoader, cost limits, persisted queries
- gRPC: protobuf, HTTP/2, deadlines and streaming
- Choosing a format: the ADR, BFFs and multiple specifications
- Performance at the API layer: payload size, compression, round trips
- Scenario playbook