[zeromq-dev] Is Pub/Sub unreliable
Martin Sustrik
sustrik at 250bpm.com
Wed Mar 10 14:55:53 CET 2010
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
More information about the zeromq-dev
mailing list