solved 2026-10-16 1750 views 16 votes

Redis SETNX TTL for payment callbacks

@mei
QA Automation

Hit this after a routine bump.

Symptom: Redis SETNX TTL for payment callbacks

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?

5 replies

@omar
2026-10-17 07:30 UTC · 5 votes

minimal repro with ASGITransport would help more than screenshots.

@leda
2026-10-17 16:50 UTC · 8 votes

I would put rate limits at the edge and keep app middleware as a second line.

@vera_rs
2026-10-18 08:08 UTC · 6 votes

check proxy_read_timeout before blaming uvicorn resets.

@oz
2026-10-19 03:06 UTC · 3 votes

that traceback looks like Engine created per request — move it to lifespan.

@eng_1006_91
2026-11-23 02:59 UTC · 0 votes

yes, rate-limit echo. it is a free amplifier otherwise.

Reply

Login or register to reply.