/
Move RabbitMQ messages between queues

Move RabbitMQ messages between queues

There are several reasons why it might be useful to move messages around. This includes quarantining messages which have ended up on a dead letter queue or sending messages to an alternative exchange / queue for further processing.

 

Use RabbitMQ’s shovel plugin

  1. Go to the shovel management interface {RABBIT_MQ_HOST}/#/dynamic-shovels.

  2. Under add a new shovel:

    1. enter the source and destination queue

    2. it’s usually desirable to set the Auto-delete option to “After initial length transferred” unless this is a repeated task.

    3. Setting the Acknowledgement mode to “On publish” seems to be needed for simple queue->queue moves

    4. click Add shovel to save the shovel

Related pages