[openamq-dev] message duplicates

Martin Sustrik sustrik at imatix.com
Wed Apr 2 13:31:54 CEST 2008


Dmitri,
> Problem 1:
> If clients uses the same queue name, they start receiving duplicate 
> (sometimes 3, 4 etc) messages .
> You can probably do this with just one client and try to bind the same 
> queue to overlapping routing key, I think you should see multiple copies 
> of the same message coming to your client.
>   
Confirmed. The exchange should pass only a single copy of message to the 
queue even if it matches several bindings.

Pieter, to reproduce, use attached PAL script (dmitri.pal).
> I think because of that, there is interesting side-effect when I am 
> using mta clustering configuration.
>
> Problem 2:
> I have two amq_serevers - one is "master" - receives all the feeds, and 
> one is "slave" - serves all the clients. The slave is peering with the 
> master via mta configuration option 1 - subscriber.
> When my clients subscribe to a slave (amq.topic exchange) with 
> overlapping routing keys (note that queue names may be, and usually are, 
> unique!) they receives multiple copies of the messages that match their 
> subscription rules. This is probably because "master" amq server sends 
> multiple copies of the same message to the "slave".
>   
Yes, that's the same problem as above.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dmitri.pal
Type: text/xml
Size: 600 bytes
Desc: not available
Url : http://lists.openamq.org/pipermail/openamq-dev/attachments/20080402/ad11f752/attachment.bin 


More information about the openamq-dev mailing list