[rabbitmq-discuss] Filter out messages from self
m.luchak at smartasking.com
m.luchak at smartasking.com
Wed Jun 20 19:38:06 BST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120620/74e649f7/attachment.htm>
More information about the rabbitmq-discuss
mailing list