Skip to content

Why Your FastAPI Is Not FastA deep dive into hidden bottlenecks

Five anti-patterns, real measurements, runnable demos.

The five anti-patterns ​

FastAPI gives you the tools, but it does not protect you from yourself. Each card below is one anti-pattern from the talk, with the headline measurement from the captured Postgres runs. Each pattern has a bad and a good endpoint on the same running service.

At a glance ​

5
Anti-patterns
AP1 to AP5
16
HTTP endpoints
API, including /health
13
Automated tests
pytest, deterministic
0
Invented numbers
every figure traces to a repo file

Choose your path ​

Pick the time you have. The same material is organised differently for each.

Skim

5 minutes

Read the five-point performance checklist. It is the distilled takeaway of the talk, with the headline before-and-after numbers.

Open the checklist →

Read

30 minutes

Read the five anti-pattern pages. For each one, look at the bad and good code side by side and the measured evidence.

Read the patterns →

Run

An evening

Clone the repo, start the services, and reproduce every demo yourself with the SQLite setup or the Docker and Postgres setup.

Set up and run →

Released under the MIT License. Speaker: Satyam Soni, PyCon Hong Kong 2026.