15
votes

I know that an exchange can bind multi queues in rabbitmq, does it support binding a single queue to multi exchanges?

1
yes , can bind a queue to multiple exchange . what would you do that? please give me a little more description - Honarkhah

1 Answers

8
votes

YES, it can.

A queue can have any number of bindings to different exchanges, even multiple bindings to the same exchange with different parameters.

You do this by invoking the bind method multiple times, see:

https://www.rabbitmq.com/amqp-0-9-1-reference.html#queue.bind