FastAPI

Python web framework for building APIs, based on type hints, Pydantic and Starlette.

Commenters pick it as a lightweight Python backend for REST APIs, often paired with PostgreSQL,12345 and credit its API design.6 The most common caveat is that Python async is widely misunderstood78 and gets messy in larger production apps.9
The HN verdict, written from 9 cited comments
6recommend
4warn against
Nov 3, 2025first mention
Oct 14, 2026latest mention
Nov 25 – Oct 26
Used forfor solo devsfor side projectsfor ML model servingfor AI agent backendsbackendbackend framework

Why people recommend it

Default backend stack · 3

Commenters name it as their preferred backend, usually alongside PostgreSQL.

36fOct 1, 2026recommends

“My stack of choice would be FastAPI + Svelte + PostgreSQL”

back end / full stack engineer job seekeron “Ask HN: Who wants to be hired? (October 2026)”
Show 1 more

“on the back i use fastapi with postgresql and oauth2”

Lightweight layer · 1

One commenter replaced Cog with a thin FastAPI layer for GPU model serving and was immediately unblocked.

“I replaced it with a lightweight FastAPI layer, which immediately unblocked me”

API design · 1

Its API design is credited as work that other libraries have copied.

“the hard work that the original designers of libraries like FastAPI, Zod, Pydantic, have invested”

Python ecosystem · 1

It is cited as part of what pulled a long-time Ruby developer over to Python.

“Python has won for me: fastapi, pytorch, langchain, streamlit, and so on and on.”

Ruby developer for over a decade, wrote a book on Rubyon “Ruby 4.0.0 Released”

Caveats and dissent

Async confusion · 3

People adopt it because it is "faster" even for compute-bound work, and async Python with types can get messy in larger apps.

“switched to FastAPI because "it's faster" even when they're using it to serve ML models which are compute bound”

“I don’t know how big production apps are maintained (and supported operationally) with the mess that is python+async+types.”

Show 1 more

Build-it-yourself · 1

A long-time Django developer found that much of what Django provides must be assembled by hand.

“Coming to a FastAPI app with alembic and finding a lot of that is build-it-yourself (and easily break it) is a bit of a shock.”

Extra over Starlette · 1

One commenter sees it as unnecessary baggage on top of Starlette.

“FastAPI is built on Starlette - to be honest I don’t see the point of the extra baggage - just use Starlette.”

Middleware streaming · 1

BaseHTTPMiddleware is reported to silently break streaming responses.

“FastAPI's BaseHTTPMiddleware silently breaks streaming responses”

Per-request transactions · 1

One commenter criticizes it for encouraging a DB connection and transaction at the start of every request.

“FastAPI encourages you to open a db connection and a transaction at the front of every request”

Often compared with

Who recommends it in their own words

All comments 35

“Sentry, FastAPI, Express/Hono”

AI-powered forward engineer looking for workon “Ask HN: Who wants to be hired? (October 2026)”

“Python, Django, FastAPI, PostgreSQL, Celery”

36fOct 1, 2026recommends

“My stack of choice would be FastAPI + Svelte + PostgreSQL”

back end / full stack engineer job seekeron “Ask HN: Who wants to be hired? (October 2026)”

“Technologies: Python, PostgreSQL, FastAPI”

senior systems engineer seeking workon “Ask HN: Who wants to be hired? (October 2026)”

“a Python (FastAPI) sidecar that drives the agent backends”

“on the back i use fastapi with postgresql and oauth2”

“Python, FastAPI, LangGraph, MCP, RAG, Postgres/pgvector, Redis, Celery, Docker”

“switched to FastAPI because "it's faster" even when they're using it to serve ML models which are compute bound”

“FastAPI encourages you to open a db connection and a transaction at the front of every request”

“FastAPI, React, Celery, Postgres, and Redis”

“FastAPI is built on Starlette - to be honest I don’t see the point of the extra baggage - just use Starlette.”

“Built on Python / FastAPI and Supabase for the backend.”

solo developer

“right now I use fastapi and write it all in Python”

“one Python app (FastAPI/SQLAlchemy) for the backend that exposes a REST API”

“FastAPI/PostgreSQL infrastructure backbone I architected from scratch”

final-year engineer building AI projectson “Ask HN: Who is hiring? (April 2026)”

“shared message board backed by FastAPI + SQLite”

“the hard work that the original designers of libraries like FastAPI, Zod, Pydantic, have invested”

“FastAPI's BaseHTTPMiddleware silently breaks streaming responses”

“The backend is built with FastAPI.”

“The endpoints are hosted on a separate VPS running FastAPI”

“The endpoints are hosted on a separate VPS running FastAPI”

“Python/FastAPI backend managing asynchronous requests”

“Coming to a FastAPI app with alembic and finding a lot of that is build-it-yourself (and easily break it) is a bit of a shock.”

“Technical Stack: React Native (Expo), Next.js, FastAPI, PostgreSQL.”

“I also built a backend service using Flask and FastAPI.”

“Python has won for me: fastapi, pytorch, langchain, streamlit, and so on and on.”

Ruby developer for over a decade, wrote a book on Rubyon “Ruby 4.0.0 Released”

“Backend: Python (FastAPI) hosted on Render.”

“I replaced it with a lightweight FastAPI layer, which immediately unblocked me”

“Backend: FastAPI (Python) + some Go workers for Demucs processing”

“I don’t know how big production apps are maintained (and supported operationally) with the mess that is python+async+types.”

Threads where it came up

Data: fastapi.json. Quotes are verbatim; the verdict and theme labels are written by a model from these comments, and every clause links to its sources.

Keyboard shortcuts
j / kNext / previous item
o or EnterOpen selected item
/Search
g hHome
g tTop
g rRising
g cCategories
tToggle dark mode
?This help