Reputation: 136
I have created two exchanges WORKER and RETRY. And I set DLX to resend expired or rejected messages to original queue, but my messages are disappear in RETRY queue. Problem is that the expired messages do not fall into work.exchange. But with rejected messages working well. Pls help. Can you give me some explanation and solution.
Upvotes: 1
Views: 729
Reputation: 174554
Problem is that the expired messages do not fall into work.exchange. But with rejected messages working well.
You should have explained that in your original question.
You are not allowed to create an expiry cycle; only reject then expire.
See the documentation.
It is possible to form a cycle of message dead-lettering. For instance, this can happen when a queue dead-letters messages to the default exchange without specifiying a dead-letter routing key. Messages in such cycles (i.e. messages that reach the same queue twice) will be dropped if there was no rejections in the entire cycle.
Upvotes: 2