[rabbitmq-discuss] Need to deliver same (common) message to all subscribers (multicast)

Allan Kamau kamauallan at gmail.com
Tue Apr 26 07:33:58 BST 2011


I would like to have all my consumers receive a copy of any message in
a specific queue. This message contain some initialization data for
the clients.

Seems I am looking for a multicast example using Java API.

At the moment I am looking at having the clients call
Channel.basicCancel() method after receiving and processing the
message but before that they set their own instance variable to true
(indicating they have already retrieved and successfully used the
"shared" message) so as not to request for this message again.
But I think the above solution may lead to serialized processing of
the queued message, all the clients waiting on this queue will have to
wait till the message is made available again to the queue by the
consumer currently awarded the message.

Allan.


More information about the rabbitmq-discuss mailing list