[rabbitmq-discuss] Binding queues on a topic exchange

Matthias Radestock matthias at lshift.net
Wed Jul 4 18:46:39 BST 2007


Ben,

"Ben Hood" <0x6e6562 at gmail.com> writes:

>> For a topic exchange, a message gets delivered to all queues that match
>> the message's routing key with their binding pattern.
>>
>> When you have multiple consumers on one queue, every message gets
>> delivered to *one* of the consumers.
>>
>> So, taking your above cases, in the first example every message with a
>> matching routing key will be delivered to *one* of the consumers, and in
>> the second case every message with a given routing key is delivered to
>> *all* queues that match the routing key with their pattern, and then in
>> turn to the consumer(s) hanging off those queues (one per queue in this
>> example).
>
> So in order to have all consumers receive a copy of every piece of
> published data (e.g. for a price feed) you would have to go for option
> (b). Is this correct?


Indeed.


Matthias.




More information about the rabbitmq-discuss mailing list