[zeromq-dev] Is Pub/Sub unreliable

Pieter Hintjens pieterh at gmail.com
Wed Mar 10 17:06:56 CET 2010

One solution to this is a last-value cache whereby subscribers get the
last version of messages matching their subscriptions, when they

On Wed, Mar 10, 2010 at 2:55 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> gonzalo diethelm wrote:
>> Ok, that makes perfect sense now. And the reason this is not apparent
>> for Upstream / Downstream sockets is because they queue any unsent
>> messages, so all messages are eventually sent after a successful
>> reconnection, right?
> Exactly.
>> So I guess it is not a bad idea to always add a small sleep time (say,
>> 200 ms) after binding to a PUB socket. What do you think?
> Why not. That way you'll guarantee that SUBs have some time to connect
> before actual transmission begins.
> However, don't expect it to be 100% reliable. Say a hick-up in the
> network that would delay connection establishment by 200ms would cause
> the same problem.
> Martin
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list