[rabbitmq-discuss] Preventing Publisher from Consuming Own Messages?

Matthias Radestock matthias at rabbitmq.com
Mon Feb 28 15:27:38 GMT 2011


On 28/02/11 13:01, James Carr wrote:
> One minor problem I've had however is the publishes also consumes its
> own messages. My quick hack solution to it was to just put some logic
> in the client code to filter out messages sent by the same node but
> I'm wondering if the broker has some built in way to prevent delivery
> of messages on a queue bound to the same publisher?

You could probably cook something up with alternate exchanges and 
internal exchanges, but the approach you have implemented above is 
actually not so bad and its relative cost decreases as the cluster grows.



More information about the rabbitmq-discuss mailing list