RabbitMQ

 View Only

 I need to deploy RabbitMQ cluster in high volume messaging environment. To consume the high volume of messages I need to distribute the messages between multiple consumers regardless of routingKey. How can we achieve it?

Nitesh Soni's profile image
Nitesh Soni posted Oct 11, 2019 03:45 PM

 

Eddie Murphy's profile image
Broadcom Employee Eddie Murphy

In this case you can use a fanout exchange . This will copy and route a received message to all queues that are bound to it regardless of routing keys or pattern matching as with direct and topic exchanges. The keys provided will simply be ignored.

Refer here for more details: https://www.cloudamqp.com/blog/2015-09-03-part4-rabbitmq-for-beginners-exchanges-routing-keys-bindings.html

Nitesh Soni's profile image
Nitesh Soni

Hello Eddie,

In my deployment there will be only one queue and many consumers. To make my deployment scalable, messages to be distributed among consumers. For ex if at any time queue has 100 messages some of it should be sent to consumer1 and some of it should be sent to consumer2 and so on. Does RabbitMQ support it?