Q&A
Q&AHow do async def and standard def routes differ in FastAPI?
Async routes run on the event loop; sync routes are generally dispatched to a worker thread pool.
Read the concise answer
An async route can yield during nonblocking I/O, allowing the event loop to serve other work. A normal def route is typically run in a thread pool. Calling blocking I/O inside async def blocks the event loop; using async syntax alone does not improve CPU-bound work. Choose an execution model based on the library and bottleneck.