Skip to main content
InterviewHubPRO
Section Overview
Q34

Question 34 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

68%
RabbitMQ & AMQP (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

Resilient Distributed Retry Architecture: Multi-Tier Dead-Letter Retries.

senior LevelCode ExampleSystem DesignData Structures

In Simple Words: Instead of a single retry, implement an exponential backoff ladder using dead-letter queues:

scss
[ Incoming Task ] ---> [ Main Queue ]
                              | (Fails attempt 1)
                              v
                       [ Retry Queue 1 (TTL: 10s) ]
                              | (Fails attempt 2)
                              v
                       [ Retry Queue 2 (TTL: 60s) ]
                              | (Fails attempt 3)
                              v
                       [ Retry Queue 3 (TTL: 10m) ]
                              | (Exceeds max retries)
                              v
                       [ Quarantine DLQ (Human Inspection) ]