β‘
FastAPI Production L3 PRO Β· 105 lessons REST APIs the way US startups ship them
β‘ cert_available_label
Certificate in Production FastAPI Backend Engineering
0 / 45 cert_lessons_toward
105 lessons across 6 modules: FastAPI basics, Pydantic v2 validation, auth & security, async + background tasks + WebSockets, production deployment, and real-world patterns (rate limiting, caching, RLS multi-tenancy, OpenTelemetry, feature flags, blue/green vs canary).
β
Before you start
Β· Python Foundations done β you read & write functions, classes, decorators Β· Basic HTTP: GET / POST / status codes. No prior framework experience needed Β· Postgres or any SQL DB you can `SELECT *` from (we'll show you docker run) βΉοΈ Heads-up on the format: These lessons are concept explanations + quizzes + predict-the-output exercises. The code samples don't execute in your browser because Pyodide can't spin up an HTTP server / database / TCP socket. To run them, copy snippets into your own machine β or pair this track with Foundations (which DOES run live in-browser via Skulpt).
πΊ Map π Curriculum
π Pydantic v2 β your contract layer
π Dependency injection β FastAPI's killer feature
π SQLAlchemy 2.0 async β the new normal
π Error handling β proper HTTP semantics
π Testing with pytest + httpx
π Deploying to Fly.io / Vercel / Railway
π π Capstone β build a SaaS subscription API
π Path parameters and types
π Async DB with SQLAlchemy 2.0
π Testing with httpx ASGITransport
π Deploying with gunicorn + uvicorn
π π― Review: FastAPI module 1 recap
π Server-Sent Events (SSE) streaming
π File uploads (single + multi)
π Background workers (Celery / arq / RQ)
π Caching responses with Redis
π Rate limiting with slowapi
π API versioning strategies
π OpenAPI customization + Swagger UI tweaks
π CORS deep-dive (allow_origin_regex)
π Trusted host + HTTPS redirect middleware
π Webhook receivers with signature verification
π Idempotency keys (replay-safe POST)
π Pagination: offset vs cursor
π Search: filtering + sorting + faceting
π Bulk operations (batch insert/update)
π Long-polling vs WebSocket vs SSE
π GraphQL with Strawberry on FastAPI
π gRPC integration (when REST is wrong)
π OpenTelemetry instrumentation
π π Capstone β production-ready SaaS API
π π― Review: FastAPI module 2 recap
π Microservices vs monolith β when to split
π Service discovery in Kubernetes
π gRPC vs REST β when to switch
π OAuth2 scopes β fine-grained authorization
π mTLS for service-to-service auth
π HMAC webhook signature verification
π Token bucket rate limiter
π Sliding window log rate limiter
π Retries with exponential backoff + jitter
π Bulkhead pattern β limit blast radius
π Graceful shutdown + readiness probes
π Connection pool sizing β DB and HTTP
π DataLoader β eliminate the N+1 trap
π Idempotency keys for mutating endpoints
π API versioning + deprecation headers
π π Capstone β notifications microservice
π π― Review: FastAPI module 3 recap
π ASGI internals β scope, receive, send
π Custom middleware β body-already-consumed
π Background tasks β three tiers
π Dependency injection β yield, sub-deps, scopes
π SSE and streaming responses
π WebSocket auth + reconnection
π File uploads at scale β presigned URLs
π SQLAlchemy 2.0 async β loading strategies
π Async pitfalls β blocking the event loop
π Pure-Python circuit breaker
π Testing async β httpx ASGITransport
π OpenAPI customization β tags, security, examples
π SDK auto-generation from OpenAPI
π CORS deep β preflight, credentials, regex
π Settings + secrets with pydantic-settings
π Structured logging + correlation IDs
π Sentry, error budgets, sampling
π Alembic with multi-tenant schemas
π Health probes β shallow vs deep
π π Capstone β payments microservice end-to-end
π π― Review: FastAPI module 4 recap
π Pagination: offset/limit vs cursor
π Rate limiting under load: Redis-backed token buckets
π Response caching with Cache-Control + ETag
π BackgroundTasks vs Celery vs ARQ
π File uploads: streaming vs buffered
π WebSockets: rooms with Redis Pub/Sub
π Health checks: liveness vs readiness
π Structured logs with request_id (contextvars)
π Sentry integration + sampling
π OpenTelemetry for vendor-neutral tracing
π Feature flags (GrowthBook / LaunchDarkly)
π Multi-tenancy: row-level + Postgres RLS
π API versioning: URL vs header
π Deployment: gunicorn + uvicorn workers
π π Capstone: production-ready FastAPI checklist
Tip: click any lesson to revisit it. After your first attempt, the βShow exampleβ button reveals the full solution.