0
0
Azurecloud~30 mins

Dead letter queues in Azure - Mini Project: Build & Apply

Choose your learning style9 modes available
Azure Service Bus Dead Letter Queue Setup
📖 Scenario: You are building a messaging system using Azure Service Bus. Sometimes messages cannot be processed and need to be moved to a special holding area called a dead letter queue (DLQ) for later inspection.
🎯 Goal: Create an Azure Service Bus queue with dead letter queue enabled, configure a rule to move messages to the dead letter queue on failure, and set up the final queue properties.
📋 What You'll Learn
Create a Service Bus queue named orders
Enable dead letter queue on the orders queue
Add a rule to move messages to the dead letter queue on processing failure
Set the MaxDeliveryCount to 5 on the orders queue
💡 Why This Matters
🌍 Real World
Dead letter queues help handle messages that cannot be processed, preventing message loss and enabling troubleshooting.
💼 Career
Understanding dead letter queues is essential for cloud engineers and developers working with reliable messaging systems in Azure.
Progress0 / 4 steps
1
Create the Azure Service Bus queue named orders
Write the Azure Resource Manager (ARM) template snippet to create a Service Bus queue resource named orders inside a Service Bus namespace resource named myNamespace. Include the basic properties for a queue.
Azure
Need a hint?

Use the resource type Microsoft.ServiceBus/namespaces/queues and name it myNamespace/orders.

2
Enable dead letter queue by setting MaxDeliveryCount
Add the property maxDeliveryCount with the value 5 inside the properties of the orders queue resource to enable dead lettering after 5 delivery attempts.
Azure
Need a hint?

Set maxDeliveryCount to 5 inside properties.

3
Add a rule to move failed messages to the dead letter queue
Add the property deadLetteringOnMessageExpiration with the value true inside the properties of the orders queue resource to enable dead lettering on message expiration.
Azure
Need a hint?

Add deadLetteringOnMessageExpiration set to true inside properties.

4
Finalize the queue configuration with lockDuration
Add the property lockDuration with the value "PT5M" (5 minutes) inside the properties of the orders queue resource to set the message lock duration.
Azure
Need a hint?

Set lockDuration to "PT5M" inside properties.