[rabbitmq-discuss] Filter out messages from self
m.luchak at smartasking.com
m.luchak at smartasking.com
Wed Jun 20 21:58:47 BST 2012
Hi Randall,
Thanks for your help. Yeah, Rabbit ignores nolocal... too bad... oh well, I will implement a filter after the fact I guess..
thanks again,
Matthew
-----Original Message-----
From: "Randall Richard" <randall at trellisapp.com>
Sent: Wednesday, June 20, 2012 3:31pm
To: m.luchak at smartasking.com
Cc: rabbitmq-discuss at lists.rabbitmq.com
Subject: Re: [rabbitmq-discuss] Filter out messages from self
See [http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-April/012458.html] 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, <[mailto:m.luchak at smartasking.com] 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
[mailto:rabbitmq-discuss at lists.rabbitmq.com] rabbitmq-discuss at lists.rabbitmq.com
[https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss] 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/a22fdb8d/attachment.htm>
More information about the rabbitmq-discuss
mailing list