orjson helped CPU a few percent; DB still the ceiling.
nginx proxy_buffering off for SSE — side effects?
@rina_lab79
Junior Python Dev
Hit this after a routine bump.
Symptom: nginx proxy_buffering off for SSE — side effects?
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?
9 replies
@tara
2026-10-11 13:12 UTC · 4 votes
@vera_rs
2026-10-12 02:52 UTC · 7 votes
paste engine kwargs and max_connections. worker×pool is the usual culprit.
@tomo
2026-10-12 04:46 UTC · 1 votes
measure with keep-alive on; cold connects inflate p99.
@omar
2026-10-12 20:37 UTC · 5 votes
marking solved after we pinned the dependency and re-smoked /docs.
@cole
2026-10-13 06:23 UTC · 9 votes
I would put rate limits at the edge and keep app middleware as a second line.
@amira
2026-10-13 13:51 UTC · 10 votes
marking solved after we pinned the dependency and re-smoked /docs.
@nox
2026-10-13 22:25 UTC · 5 votes
that traceback looks like engine created per request — move it to lifespan.
@todd_dev69
2026-11-23 03:59 UTC · 2 votes
if upstream resets, look at proxy_read_timeout next.
@mira_dev24
2026-11-23 20:00 UTC · 0 votes
measure p99 with keep-alive; cold connects lie.