You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Authentication no longer blocks the event loop. Every route and dependency
that hashes a password or queries the database was declared async def,
which meant FastAPI ran it on the event loop: a single login held the whole
process for the duration of its bcrypt verification (roughly 200ms), and
every authenticated request blocked the loop for the length of its user
lookup. Concurrent logins queued behind one another and stalled unrelated
traffic. Those handlers are now synchronous, so FastAPI runs them in a
threadpool. No API changes: request and response shapes are identical, and
throughput under concurrency improves substantially.