Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does rabbitmq support binding a single queue to multi exchanges?

Tags:

rabbitmq

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

like image 473
Jimmy Guo Avatar asked Sep 18 '17 02:09

Jimmy Guo


1 Answers

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

like image 93
istepaniuk Avatar answered Oct 05 '22 06:10

istepaniuk