DEV Community

FastAPI

The official tag for the FastAPI framework.

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
SQLAlchemy Relationship Lazy Loading Strategies in Multi-Tenant FastAPI: N+1 Queries and the Cost of Joinedload

SQLAlchemy Relationship Lazy Loading Strategies in Multi-Tenant FastAPI: N+1 Queries and the Cost of Joinedload

1
Comments 1
4 min read
Building a GraphQL Video Discovery API with Strawberry and FastAPI

Building a GraphQL Video Discovery API with Strawberry and FastAPI

Comments
9 min read
Getting the public IP in Python — scripts, Django, FastAPI

Getting the public IP in Python — scripts, Django, FastAPI

Comments
6 min read
FastAPI Async Context Vars for Multi-Tenant Request Isolation: Why asyncio.create_task() Breaks Your Tenant Context and How to Fix It

FastAPI Async Context Vars for Multi-Tenant Request Isolation: Why asyncio.create_task() Breaks Your Tenant Context and How to Fix It

Comments
4 min read
Portfolio de IA open source: 20+ proyectos con LLMs self-hosted en producción

Portfolio de IA open source: 20+ proyectos con LLMs self-hosted en producción

Comments
3 min read
Clean Architecture and Domain-Driven Design (DDD) in FastAPI

Clean Architecture and Domain-Driven Design (DDD) in FastAPI

Comments
3 min read
FastAPI Lifespan Events for Multi-Tenant Resource Initialization: Setting Up Tenant Caches and AI Model Contexts Without Singleton Hell

FastAPI Lifespan Events for Multi-Tenant Resource Initialization: Setting Up Tenant Caches and AI Model Contexts Without Singleton Hell

Comments
5 min read
My first backend actually works (after a LOT of small breakdowns)

My first backend actually works (after a LOT of small breakdowns)

Comments
2 min read
Event-Driven Algos: Mastering Webhooks and Order Lifecycle Event Triggers

Event-Driven Algos: Mastering Webhooks and Order Lifecycle Event Triggers

Comments
5 min read
UUIDv4 vs UUIDv7 in PostgreSQL: A B-Tree Index Performance Deep Dive

UUIDv4 vs UUIDv7 in PostgreSQL: A B-Tree Index Performance Deep Dive

Comments
4 min read
Why Your AI-Connected ERP Will Fail in Production And How to Fix It Before It Does

Why Your AI-Connected ERP Will Fail in Production And How to Fix It Before It Does

Comments
4 min read
How I Built a Password Strength & Breach Check API with FastAPI and HaveIBeenPwned

How I Built a Password Strength & Breach Check API with FastAPI and HaveIBeenPwned

Comments
2 min read
Build a Self-Hosted Affiliate Click Tracker in Python: A /go?id= Redirector That Auto-Increments a KPI click Column (2026)

Build a Self-Hosted Affiliate Click Tracker in Python: A /go?id= Redirector That Auto-Increments a KPI click Column (2026)

1
Comments
7 min read
Fast dependency injection in Python without a provider framework

Fast dependency injection in Python without a provider framework

4
Comments 1
3 min read
Same PRD, four stacks, zero LLM calls — and EU AI Act Annex IV from the same spec

Same PRD, four stacks, zero LLM calls — and EU AI Act Annex IV from the same spec

Comments
2 min read
👋 Sign in for the ability to sort posts by relevant, latest, or top.