orjson helped cpu a few percent; db still the ceiling.
Cache-Control for public OpenAPI JSON
@cole
Senior Go Engineer
Hit this after a routine bump.
Symptom: Cache-Control for public OpenAPI JSON
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
@nox
2026-10-21 18:18 UTC · 10 votes
@raul
2026-10-22 12:39 UTC · 1 votes
orjson helped CPU a few percent; DB still the ceiling.
@kai_sre
2026-10-22 21:31 UTC · 7 votes
measure with keep-alive on; cold connects inflate p99.
@raul
2026-10-23 16:13 UTC · 4 votes
marking solved after we pinned the dependency and re-smoked /docs.
@jon_async
2026-10-23 19:51 UTC · 3 votes
I would put rate limits at the edge and keep app middleware as a second line.
@omar
2026-10-24 02:04 UTC · 3 votes
I would put rate limits at the edge and keep app middleware as a second line.
@cleo_dev29
2026-10-24 07:15 UTC · 8 votes
measure with keep-alive on; cold connects inflate p99.
@nyx_api
2026-10-25 01:14 UTC · 1 votes
I would put rate limits at the edge and keep app middleware as a second line.
@rina_lab79
2026-11-23 00:58 UTC · 4 votes
yes, rate-limit echo. it is a free amplifier otherwise.