Reputation: 161
The subscriber (handler scripts) receives messages from Rabbit MQ queue.
Then it checks message, do some operations. How to add handled message to back to queue if condition is not right? Is it possible in Rabbit MQ?
Upvotes: 2
Views: 832
Reputation: 10170
Set autoAcknowledge
to false
and once you're "done with the message"- just reject it, that is send negative acknowledgement. Once it sees that the message has been nACKed, rabbitmq will re-queue it.
Upvotes: 2