@amira
2026-10-29 22:48 UTC · 4 votes
orjson helped CPU a few percent; DB still the ceiling.
Hit this after a routine bump.
Symptom: How large is too large for a request body?
TimeoutError / pool exhausted / upstream reset
(versions in next reply if needed)
Env: Python 3.12, FastAPI recent, uvicorn workers≥2.
What should I check first?
orjson helped CPU a few percent; DB still the ceiling.
dropping pool_size per worker fixed it for us on the same box size.
marking solved after we pinned the dependency and re-smoked /docs.
orjson helped CPU a few percent; DB still the ceiling.
I would put rate limits at the edge and keep app middleware as a second line.
measure with keep-alive on; cold connects inflate p99.
minimal repro with ASGITransport would help more than screenshots.
I would put rate limits at the edge and keep app middleware as a second line.