azureservicebusazureservicebusazure-servicebus-queues

Azure Service Bus Subscriber Deadletter


I've looked everywhere for information on this but can't seem to find what i'm looking for.

I've got an azure topic, with one subscription.

The handler for the subscription failed some messages, they've been put on the deadletter queue.

I can access the messages but i'm at a loss for how to restore them.

I don't want to create a copy of the message and send it to the topic. I specifically want to move it to the subscription queue it came from.

Is there any way to do this?


Solution

  • I don't know if this is possible. What we mostly do to handle & resume messages, is to use the pattern of defering messages. If a handler fails a message, he can then defer the message and keep track of the messagesequence number (typically in a management / tracking database or component). Whenever the message needs to be reprocessed (retried), a receiver can then specifically get that message (using the same defered message id) and process it again.