Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move messages from one queue to another in RabbitMQ

In RabbitMQ,I have a failure queue, in which I have all the failed messages from different Queues. Now I want to give the functionality of 'Retry', so that administrator can again move the failed messages to their respective queue. The idea is something like that:

enter image description here

Above diagram is structure of my failure queue. After click on Retry link, message should move into original queue i.e. queue1, queue2 etc.

like image 229
Sumit Sood Avatar asked Oct 25 '25 23:10

Sumit Sood


1 Answers

If you are looking for a Java code to do this, then you have to simply consume the messages you want to move and publish those messages to the required queue. Just look up on the Tutorials page of rabbitmq if you are unfamiliar with basic consuming and publishing operations.

like image 112
Arpan Gupta Avatar answered Oct 29 '25 16:10

Arpan Gupta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!