qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Trieloff <cctriel...@redhat.com>
Subject Re: Is it possible to use a pub/sub exchange but let the listener receive all messages the producer sent
Date Wed, 01 Apr 2009 13:25:29 GMT
Jonathan Robie wrote:
> Alan Conway wrote:
>> Shan Wang wrote:
>>> Hi All,
>>>
>>>  
>>>
>>> According to the document, normally a listener of a publish/subscribe
>>> kind of exchange can only receive messages after it begins running. Is
>>> there any way to let the listeners receive all the messages ever 
>>> sent by
>>> producer?
>>>
>>>  
>>>
>>> Basically what I need is to have multiple listeners subscribe to the
>>> same queue and each receive exact the same messages sent by the
>>> producer. It does seem to be possible using QPID.
>>
>> You can have your subscribers browse rather than consume from the 
>> queue. That way messages are never removed from the queue and are 
>> still available to new subscribers. Of course the queue will grow 
>> without limit but I gather that's what you want.
>
> What advantages does this have over using a separate queue for each 
> user, and a fanout exchange? 

none if the subscription is bound upfrount.

replay, if subscriptions are bound post fact

Carl.



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Mime
View raw message