Simon MacMullen
unread,Dec 1, 2014, 5:31:48 AM12/1/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Gotthard, Petr, Michael Klishin, rabbitm...@googlegroups.com
On 29/11/14 10:16, Gotthard, Petr wrote:
> I see the problem now: I have one queue with multiple bindings.
>
> When there is a queue with multiple bindings, or a wildcard matching
> multiple CC entries, the sender-selected distribution with CC to r1,
> r2 and r3 is not(!) equivalent to sending three messages with RK r1,
> r2, r3.
No, it's not.
> From a user perspective this was not obvious to me. If this is the
> correct behavior, I'd suggest to update the documentation
> (
http://www.rabbitmq.com/sender-selected.html) and say that the
> message will not get duplicated when multiple CC entries are matching
> the destination.
Yeah, that might be worth doing. Note that this is not specific to
sender-selected distribution though; if you bind a topic exchange to a
queue with "a.#", "a.b.#" and "a.b.c" and then publish "a.b.c" it will
only get routed to the queue once. In fact internally there are a few
places where we assume each message can only get routed to a queue once.
> Sometimes the destination queue is not the final destination and the
> consumer is using the RK to determine the next hop / further
> processing. The BCC field is particularly useless in this case
> because the consumer gets one message only (because it has only one
> queue) with the BCC field removed (to preserve confidentiality), so
> the consumer will not know what was the intended final destination
> indicated in the BCC.
>
> This is the dark side of this "non-duplicating" CC and BCC. This is
> probably a feature, not a bug. I just wanted to report this so other
> don't fall in the same trap. ;-)
Yeah, it is I'm afraid.
Cheers, Simon