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 + Pydantic v2 + SQLAlchemy 2.0 — Production Patterns for 2026

A complete, opinionated production layout for FastAPI in 2026. Pydantic v2, async SQLAlchemy 2.0, Alembic, dependency injection, structured errors, settings, logging, and the project skeleton that survives the first 50 endpoints.

April 28, 2026 · 8 min · 1521 words · Manvendra Rajpoot

Django vs FastAPI: Which One Should You Pick in 2026?

An opinionated, side-by-side comparison of Django and FastAPI covering philosophy, features, performance, and when to pick each (or both).

April 28, 2026 · 6 min · 1276 words · Manvendra Rajpoot

Testing FastAPI Apps: From Pytest to Database Isolation

A practical guide to testing FastAPI: pytest configuration, async HTTP client, transactional database isolation per test, and fixtures for authentication.

April 28, 2026 · 7 min · 1414 words · Manvendra Rajpoot

JWT Authentication in FastAPI: A Complete Walkthrough

An end-to-end JWT auth walkthrough for FastAPI: bcrypt password hashing, access + refresh tokens, dependency-injected current user, and how to avoid common pitfalls.

April 28, 2026 · 8 min · 1516 words · Manvendra Rajpoot

FastAPI + SQLAlchemy + PostgreSQL: A Modern Setup

Build a production-ready FastAPI + SQLAlchemy 2.0 + PostgreSQL stack with async sessions, dependency-injected DB access, and Alembic migrations.

April 28, 2026 · 7 min · 1364 words · Manvendra Rajpoot