Cheatsheets for FastAPI. Pair with the FastAPI textbook for depth.
FastAPI Cheatsheet 11 — Docker, Kubernetes, and Deploy
Cheatsheet: Dockerfile (multi-stage, distroless), Uvicorn flags, K8s deployment, probes, HPA, lifespan, graceful shutdown.
Cheatsheets for FastAPI. Pair with the FastAPI textbook for depth.
Cheatsheet: Dockerfile (multi-stage, distroless), Uvicorn flags, K8s deployment, probes, HPA, lifespan, graceful shutdown.
Cheatsheet: CORS, GZip, sessions, request ID, timing, body inspection, custom ASGI middleware, ordering rules.
Cheatsheet: customize OpenAPI title/description, exclude routes, tag groups, custom servers, JS clients.
Cheatsheet: BaseSettings, env_file, secrets directory, lru_cache, CLI integration, multi-env config.
Cheatsheet: 422 patterns, deps not resolving, async/sync mismatch, CORS, OpenAPI weirdness, and quick fixes.
Cheatsheet: offset/limit, keyset, opaque cursor encoding, total counts, generic Page[T] response model.
Cheatsheet: ETag, Cache-Control, Redis cache, fastapi-cache, conditional GET, invalidation.
Cheatsheet: streaming Claude / GPT / vLLM tokens via SSE, tool-call loops, cancellation, prompt caching.
Cheatsheet: liveness vs readiness, deep health checks, lifespan resource management, startup probes.
Pre-launch checklist: deps, config, observability, security, data, deployment, on-call.