Dead-Letter Queues and Retry Policies on Service Bus
Advanced · 30 minutes · 5 tasks, checked automatically · 100 points
In this advanced lab you will configure an Azure Service Bus namespace, queue, and dead-letter queue (DLQ) entirely inside the local emulator. You will set a strict retry/delivery policy so that messages which cannot be processed land automatically in the DLQ, then you will prove it by sending a poison message and reading it back from the dead-letter sub-queue. No real Azure account or billing is involved — every command targets the local floci emulator on port 4577.
What you’ll learn
- Create a Service Bus namespace and queue with dead-letter-on-message-expiration and a low max-delivery-count enabled
- Send a message to the queue, exhaust all delivery attempts by repeatedly peeking-and-abandoning until the broker moves it to the DLQ
- Read and confirm the poison message from the dead-letter sub-queue using the az CLI
How this lab works
- Start the lab: One click starts an emulated cloud on your computer, with the cloud’s own CLI ready: no account and no bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads the emulated cloud’s resources and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: An emulated cloud on your computer: no cloud account, no bill
- Cloud: AZURE
- Services: Service Bus
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A Azure sandbox created in the Local Cloud Playground
Topics: service-bus, dead-letter-queue, dlq, poison-messages, retry-policy, messaging, azure, emulator
Create a free account to start this lab.
Keep going
- Dead-Letter Topics & Retry Policies: Proving Failed Pub/Sub Messages Land Safely
- Produce and Consume from a Managed Kafka Topic with Consumer Groups and Offset Handling
- Stream Events Through Event Hubs with Consumer Groups and Checkpointing
- Stream Partitions, Message Ordering and Offset Handling Under Load
- SNS Fan-Out Architecture: Filter Policies Across Multiple SQS Queues
- Catch Failed Messages with an SQS Dead-Letter Queue and Redrive Policy