I'm looking to know is it possible to move / merge messages from one queue to another.
For example:
main-queue
contains messages ['cat-1','cat-2','cat-3','cat-4','dog-1','dog-2','cat-5']
dog-queue
contains messages ['dog-1, dog-2, dog-3, dog-4]
So the question is, (assuming both queues are on the same cluster, vhost) it possible to move messages from dog-queue
to main-queue
using rabbitmqctl
?
So at the end I'm looking to get something like:
Ideally:
main-queue
: ['cat-1','cat-2','cat-3','cat-4','dog-1','dog-2','cat-5', dog-3, dog-4]
But this is ok too:
main-queue
: ['cat-1','cat-2','cat-3','cat-4','dog-1','dog-2','cat-5', 'dog-1, dog-2, dog-3, dog-4]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…