Code RoomRabbitMQ retry loop amplifies failures
HardPrep Room Coding #2542

RabbitMQ retry loop amplifies failures

On-callReliability & on-callSenior–Staff~40 min

RabbitMQ setup: a `payments` work queue dead-letters (via DLX) to a `payments-retry` queue with a message TTL of 60s, and that retry queue dead-letters *back* to `payments` for another attempt (a delayed-retry pattern). At 08:00, broker CPU and message rates spike: the `payments-retry` queue depth oscillates around 80k, the `payments` queue shows a huge `redelivered` rate, and the broker's overall publish+deliver throughput is ~10x normal with no increase in real business traffic. Recent context: a downstream payment processor started returning errors at 07:45 for ~30% of charges. Triage and explain why the broker is melting, and how you mitigate.

What a strong answer looks like

Stop the bleeding first (mitigate), then form hypotheses from real signals. Separate root cause from symptom, communicate status as you go, and close with what prevents a repeat.

0:00 of about 40 min
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.