

You can achieve this by assigning a window to TimeToLive property of your message. This gives you more control on expiring individual messages. You can also assign a Time-to-Live window to your individual messages. You can specify this time window yourself by changing the DefaultMessageTimeToLive-property. Once a message is expired, it will automatically be moved to this dead-letter queue if you enable this.Įnabling expiration of messages on your queueĮnabling this functionality on your queue is very easy – You create a QueueDescription based on your queue name and you enable EnableDeadLetteringOnMessageExpiration, that’s it!īut hold on, it currently uses the default Time-to-Live for each message in the queue which is 10675199 days and thus almost infinite. When you create a queue in Service Bus, you are actually creating two queues – Your requested queue called ‘YourQueueName’ and a dead-letter queue. Getting started with Message expiration & dead-lettering Once a message has exceeded its time-to-live it needs to expire and be moved to the deadletter queue. Our scenario was built around the concept of queues and messages that should only live for a certain amount of time, also called time-to-live (TTL). No auto forwarding from deadletter queue to another entity. Next to that, you’re stuck with an “old” version of Azure Service Bus – Currently v2.1 – which has a more limited set of features than the latest and greatest Azure Service Bus. We are hosting it on our on-premise infrastructure.īesides the name, everything is actually pretty much the same as Azure Service Bus, except for the fact that you’re in charge of the installation & administration.

SERVICE BUS DEAD LETTER WINDOWS
Lately my team and I have been using Service Bus for Windows Server in our projects. Note: This content was originally released on my personal blog.
