The engineering notebook
RSS feed#fastapi
Articles, practical guides, and engineering notes on fastapi.
By Ashish Bhakhand 108 published articles
Explore the articles
14 articles
Reset filtersPractical Pydantic Validation Beyond Basic Field Types
Use strict objects, constrained fields, normalization, literals, and model validators without moving business logic into schemas.
Pydantic Is a Boundary, Not Your Entire Domain Model
Separate API schemas, internal domain types, and database rows so each representation serves the job it was designed for.
Thin FastAPI Routers: What Belongs in an Endpoint?
Use routes as typed HTTP adapters while services own decisions, transactions, and orchestration.
How I Structure a Large FastAPI Backend with Vertical Slices
Organize FastAPI around business capabilities so routes, services, schemas, persistence, and rules evolve together.
Why I Usually Choose FastAPI Over Django-and When I Would Choose Django
A practical framework decision based on the product you are building, the infrastructure you already have, and the work each framework removes.