FastAPI Cheatsheet 18 — Streaming and LLM Integration

Cheatsheet: streaming Claude / GPT / vLLM tokens via SSE, tool-call loops, cancellation, prompt caching.

May 11, 2026 · 3 min · 470 words · Manvendra Rajpoot

FastAPI Cheatsheet 19 — Health, Probes, and Lifespan

Cheatsheet: liveness vs readiness, deep health checks, lifespan resource management, startup probes.

May 11, 2026 · 2 min · 384 words · Manvendra Rajpoot

FastAPI Cheatsheet 20 — Production Checklist

Pre-launch checklist: deps, config, observability, security, data, deployment, on-call.

May 11, 2026 · 3 min · 561 words · Manvendra Rajpoot

FastAPI Dependency Injection in 2026 — Patterns That Scale Past Toy Apps

Practical FastAPI DI: scoped dependencies, async DB sessions, auth chains, request-scoped state, lifespan resources, and where DI starts to bite.

May 4, 2026 · 5 min · 888 words · Manvendra Rajpoot

FastAPI Background Tasks in 2026 — BackgroundTasks, ARQ, and When to Reach for Celery

Choosing background processing for FastAPI: BackgroundTasks for fire-and-forget, ARQ for Redis-backed simplicity, Celery for ecosystem, Dramatiq for ergonomics.

May 2, 2026 · 4 min · 700 words · Manvendra Rajpoot

FastAPI Streaming and SSE in 2026 — Real-Time Without WebSockets

Practical FastAPI streaming: SSE for one-way real-time, NDJSON for streamed JSON, LLM token streaming, backpressure handling, and reconnect patterns.

May 2, 2026 · 4 min · 751 words · Manvendra Rajpoot

FastAPI BackgroundTasks vs Real Job Queues — When to Use Which in 2026

FastAPI BackgroundTasks looks convenient but has real limits. When it’s enough, when you need a real queue, and how to migrate without disrupting users.

May 1, 2026 · 3 min · 523 words · Manvendra Rajpoot

FastAPI Dependency Injection in 2026 — Patterns That Scale

Production FastAPI dependency injection: typed dep aliases, request-scoped vs app-scoped resources, async deps, lifespan management, and the patterns that keep a 50-endpoint codebase clean.

May 1, 2026 · 3 min · 573 words · Manvendra Rajpoot

FastAPI WebSockets and Real-Time in 2026 — Production Patterns

Production WebSocket patterns in FastAPI: connection management, auth, scaling beyond one process, broadcast via Redis Pub/Sub or NATS, and the gotchas that bite.

April 30, 2026 · 3 min · 621 words · Manvendra Rajpoot

Testing FastAPI Apps in 2026 — Strategies That Catch Real Bugs

How to test FastAPI apps that survive: unit, integration with real Postgres, contract via OpenAPI, end-to-end, async-aware fixtures, and the patterns from production codebases.

April 30, 2026 · 3 min · 517 words · Manvendra Rajpoot