APIs & Services

Patterns and frameworks for building APIs and service interfaces: REST design, FastAPI, and gRPC.

← Prev ← System Design | Next → Databases & Storage →

Notes

  • REST API Design — HTTP semantics, resource modelling, OpenAPI, pagination, authentication, versioning
  • FastAPI Patterns — dependency injection, Pydantic v2, async handlers, middleware, ML model serving
  • gRPC and Protobuf — protobuf schema, service definition, streaming, code generation, error handling
  • gRPC Service Implementation — proto schema, code generation, server/client patterns, TLS, and testing in Python