YWILLS
YWILLS

Reputation: 136

Rabbitmq problem with requeue expired messages

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. enter image description here

this conf of retry.queue enter image description here

thid conf of work.queue enter image description here

Upvotes: 1

Views: 729

Answers (1)

Gary Russell
Gary Russell

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

Related Questions