solved 2026-10-10 2115 views 35 votes

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?

7 replies

@tara
2026-10-11 13:12 UTC · 4 votes

orjson helped CPU a few percent; DB still the ceiling.

@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.

Reply

Login or register to reply.