[rabbitmq-discuss] Filter out messages from self

Randall Richard randall at trellisapp.com
Wed Jun 20 20:31:06 BST 2012


See
http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-April/012458.html.

AMQP defines no-local as a parameter to basicConsume which is intended to
provide the feature you're requesting.   However, AFAIK support for
no-local is not implemented in RabbitMQ.

-Randall

On Wed, Jun 20, 2012 at 2:38 PM, <m.luchak at smartasking.com> wrote:

> Afternoon Everybody,
>
>
>
> I would like to implement a feature where a Rabbit client does not receive
> any messages published by itself. The client will be listening on an
> exclusive Q that is bound to exactly one exchange.  That exchange will be
> bound to multiple exchanges.
>
>
>
> I am about to implement this feature by filtering the messages after they
> have been received by the client using the props builder to identify the
> sender, but, I would like to know if there is a silver bullet that I have
> overlooked - some way to avoid receiving the messages in the first place
> (without cludging together all of the "other users" as binding keys).
>
>
>
> Any quick fix that I am ignorant of?
>
>
>
> Using:
>
> Rabbit 2.8.1 broker running on Ubuntu 11
>
> Java and C++ clients
>
> persistent topic exchanges
>
> persistent Qs
>
>
>
>
>
> Flow:
>
>
>
> User1_Q1 ->publish-> Ex99
>
> User2_Q2 <-receive <- Ex2 <- Ex99
>
> User3_Q3 <-receive <- Ex3 <- Ex99
>
> User1_Q1 <- Ex1 x receive x   Ex99 //user who publishes message does not
> receive
>
>
>
>
>
> User3_Q3 ->publish-> Ex99
>
> User1_Q1 <-receive <- Ex1 <- Ex99
>
> User2_Q2 <-receive <- Ex2 <- Ex99
>
> User3_Q3  <- Ex3 x receive x  Ex99 //user who publishes message does not
> receive
>
>
>
>
>
>
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120620/58bb7db6/attachment.htm>


More information about the rabbitmq-discuss mailing list