Clinic Dead Letter Ward
One broken patient alert keeps failing and blocks every alert behind it. Build a safe side ward so healthy messages keep moving while the broken one waits for repair.
π§ Before we start
Oasis Retry Ladder taught you to wait and try a failed request again. Today you add a retry limit: after enough failures, a dead-letter queue safely holds the message so the main queue can continue.
Build the safety program
Tap the instruction blocks in order. Never retry forever, and never throw a patient alert away.
Keep healthy alerts moving
Deliver Heart, retry the broken Lab alert twice, move it aside, then deliver Bed. The glowing card is always the front.
π₯ MAIN QUEUE
π©Ί DEAD-LETTER WARD
Stop the retry storm
The Allergy alert has failed three times. The limit is three. Choose what protects the clinic and lets later work continue.
Repair, then redrive
Inspect the quarantined Lab alert. Fix its missing patient number before returning it to the main queue.
π§ͺ Lab result
β missing
2 of 2
cannot route
π What you learned
- A worker processes messages from the front of a queue.
- A retry counter prevents one poison message from running forever.
- After the limit, a dead-letter queue quarantines the failed message instead of deleting it.
- Healthy work continues while the failed message waits safely.
- Operators inspect the failure reason, repair the message, and redrive it.
- A redriven message returns only after its problem is fixed.