@skye
2026-10-26 18:34 UTC · 1 votes
minimal repro with asgitransport would help more than screenshots.
Hit this after a routine bump.
Symptom: CORS preflight storm from SPA — fix?
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?
minimal repro with asgitransport would help more than screenshots.
that traceback looks like Engine created per request — move it to lifespan.
measure with keep-alive on; cold connects inflate p99.
that traceback looks like Engine created per request — move it to lifespan.
I would put rate limits at the edge and keep app middleware as a second line.
orjson helped CPU a few percent; DB still the ceiling.