[rabbitmq-discuss] message broadcasting in rabbitmq
Jonas Schwertfeger
jschwertfeger at gmail.com
Wed Nov 21 14:49:47 GMT 2012
In general I'd use a fanout exchange for broadcasting.
As for your message transmission concerns: If you're worried about network
traffic you could run a local RabbitMQ server on the machine with the 1000
consumers, have the consumers bind to a fanout exchange on that local
server, and use RabbitMQ's shovel plugin
(http://www.rabbitmq.com/shovel.html) to consume the message in question
from your main, remote broker and to publish it into your local fanout
exchange. You'll only have one message on the wire then and you'll
distribute it locally to 1000 consumers.
-Jonas
On Wednesday, November 21, 2012 3:07:55 PM UTC+1, script hawk wrote:
>
> I have a question about message broadcasting in rabbitmq.
>
> I have a 1000 consumers on the same computer, if I want to broadcast a
> message to all of them, what is the best way to do it?
>
> The issue I am concerning is that I don't want rabbitmq to send the same
> message 1000 times.
> Can rabbitmq send the message to the consumer computer just one time, but
> received by all the 1000 consumers?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121121/f58977d5/attachment.htm>
More information about the rabbitmq-discuss
mailing list