0
votes

I had to move some messages from a topic to a queue, and then forward to another queue to change the messages expiry date. I did that some times and I ended up reaching maximum hop count which is 4 as it is written in here.

How can I change the MaxTransferHopCountExceeded value or is there any trick to move a million messages from the dead-letter queue to an active one so I can consume them?

I have a premium subscription on azure.

1

1 Answers

1
votes

Maximum number of hops is 4 and cannot be modified.

How can I change the MaxTransferHopCountExceeded value or is there any trick to move a million messages from the dead-letter queue to an active one so I can consume them?

Auto-forwarding messages from a dead-letter queue would count as a single hop and shouldn't be an issue. If you have auto-forwarding from a dead-letter queue to subsequent queues several times, you'll need to ensure not to exceed the maximum number of hops. I had a post a while ago that also covered message reprocessing with auto-forwarding from dead-letter queue(s).