[rabbitmq-discuss] Duplicate exchange detection

Matthias Radestock matthias at rabbitmq.com
Mon Feb 24 22:37:41 GMT 2014


On 24/02/14 20:50, pkbasu wrote:
> User John and User Alice are connected to Rabbit at different clusters, say
> CX and CY. There is a Messages exchange which is created in each of these
> broker/clusters. So there is a Messages exchange in CX and a Messages
> exchange in CY. These two are federated in both directions, so each is an
> upstream of the other (this is possible, right?)
>
> John and Alice now declare exchanges EJ (in CX) and EA (in CY) and bind them
> with routing keys messages.john and messages.alice respectively to the
> Messages exchange. Now if John sends a message to his cluster CX with
> routing key messages.alice, will CX know that there is an exchange EA
> attached to the Messages exchange in cluster CY that satisfies the routing
> key?

CX will know that there is *something* bound with routing key 
messages.alice to the Messages exchange in CY, so any messages with such 
a routing key published to the Messages exchange in CX will be pulled 
across by CY and routed through CY's Messages exchange to EA.

Matthias.


More information about the rabbitmq-discuss mailing list