[rabbitmq-discuss] How many consumers get message?

Ben Hood 0x6e6562 at gmail.com
Fri Sep 4 05:33:44 BST 2009


On Fri, Sep 4, 2009 at 4:01 AM, Allen Fowler<allen.fowler at yahoo.com> wrote:
> If I have multiple worker process connected to a RabbitMQ server, does each worker get a copy of the submited message, or does only one?

This sort of question is kind of answered in the AMQP specification
document. Might be worth taking a look at that for the background.

> If only one, how is that one chosen?

I guess your asking about what other MOMs call topics.

>From a queue, each individual message will only be delivered to one
consumer, even if it is a shared queue. However, the routing model in
AMQP allows you to control how messages end up those queues. So by
specifying routing rules to multiple queues you can multicast each
inbound message to all of your queues.



More information about the rabbitmq-discuss mailing list