[zeromq-dev] durable subscirbers and inproc

Michael Kogan mkogan at semanticresearch.com
Wed Feb 23 18:19:36 CET 2011


Martin, I have been thinking about this, but is it possible to identify gaps if I am subscribing to channels? What about multiple publishers.

On Feb 19, 2011, at 11:21 PM, Martin Sustrik wrote:

> On 02/19/2011 10:45 PM, mkogan at semanticresearch.com wrote:
>> I am currently keeping some zmq sub sockets open on behalf of clients
>> that have unexpectedly disconnected (web socket closed). I was
>> thinking of making use of named sub socket instead. However, I am not
>> sure if I could know if I missed messages.
> 
> PUB/SUB is inherently unreliable, so messages can be lost even with "durable" sockets (say when the queue overflows).
> 
> Identifying gaps in message sequence can be done by sequence-numbering the messages on the publisher.
> 
> Martin




More information about the zeromq-dev mailing list