When FastAPI suddenly becomes slow: debugging a performance issue
People pick FastAPI for speed and async support. But on one of our projects, an API handling only ~150 RPS started responding in 3–5 seconds. Sometimes requests even timed out. Infrastructure looked fine: CPU sat around 35–40% PostgreSQL showed no slow queries the network didn’t look guilty either Everything looked “normal”, yet users were waiting […]