marking solved after we pinned the dependency and re-smoked /docs.
Multi-region Redis for idempotency keys — worth it?
Hit this after a routine bump.
Symptom: Multi-region Redis for idempotency keys — worth it?
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?
10 replies
minimal repro with ASGITransport would help more than screenshots.
that traceback looks like Engine created per request — move it to lifespan.
dropping pool_size per worker fixed it for us on the same box size.
minimal repro with ASGITransport would help more than screenshots.
check proxy_read_timeout before blaming uvicorn resets.
paste engine kwargs and max_connections. worker×pool is the usual culprit.
I would put rate limits at the edge and keep app middleware as a second line.
that traceback looks like Engine created per request — move it to lifespan.
we fixed the same class of bug by moving Engine creation into lifespan.