[rabbitmq-discuss] Exchange performance

Marek Majkowski majek04 at gmail.com
Fri Jun 17 12:51:52 BST 2011

On Fri, Jun 17, 2011 at 12:41, Max C <maxence.cordier at gmail.com> wrote:
> I have two questions I'd like to ask about exchanges.
> What happen to a message published to an exchange if no queue is
> suscribed to that exchange ?

Usually it's discarded.
There are two exceptions.
 a) look at the immediate/mandatory message flags:
 b) look at 'alternate exchange' feature:

> In my application, I have a bunch of devices sendind data to a
> rabbitMQ broker. I'm wondering if I should use 1 exchange for all my
> devices, tagging messages with the name of the device which send
> them ? Or if I should use 1 exchange per device.

It all depends on how you want to use the messages. But 1 exchange
usually should do.
(and uses less resources than many exchanges :P)


More information about the rabbitmq-discuss mailing list