measure with keep-alive on; cold connects inflate p99.
Blueprint for BFF in front of three microservices
@skye
Junior Python Dev
Hit this after a routine bump.
Symptom: Blueprint for BFF in front of three microservices
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
@nyx_api
2026-10-11 01:06 UTC · 9 votes
@seth
2026-10-11 05:26 UTC · 3 votes
that traceback looks like Engine created per request — move it to lifespan.
@kai_sre
2026-10-11 16:45 UTC · 5 votes
orjson helped CPU a few percent; DB still the ceiling.
@jon_async
2026-10-12 10:49 UTC · 8 votes
minimal repro with ASGITransport would help more than screenshots.
@nyx_api
2026-10-13 02:31 UTC · 0 votes
check proxy_read_timeout before blaming uvicorn resets.
@leo_cache
2026-10-13 16:14 UTC · 5 votes
close the client in lifespan shutdown; leaks show up after a day of traffic.
@raul
2026-10-14 11:16 UTC · 5 votes
measure with keep-alive on; cold connects inflate p99.
@amira
2026-10-14 15:26 UTC · 9 votes
minimal repro with ASGITransport would help more than screenshots.
@vera_rs
2026-10-15 09:22 UTC · 3 votes
orjson helped CPU a few percent; DB still the ceiling.
@elio_py87
2026-11-23 05:59 UTC · 4 votes
middleware that opens DB sessions will bite you under load.