[zeromq-dev] HWM behaviour & blocking
Pieter Hintjens
ph at imatix.com
Thu May 10 22:53:48 CEST 2012
On Thu, May 10, 2012 at 3:44 PM, Paul Colomiets <paul at colomiets.name> wrote:
> Can you be more specific, why setting HWM to 1 is a bad thing? Do you
> mean, that it smells bad to set HWM to 1 for reliability? Or do you
> think that setting it will have other consequences? (low performance?)
it's bad because you're trying to force a synchronous model on an
asynchronous system, and doing it at the wrong level. If you really
want synchronization you MUST get some upstream data from the
receiver. Just throttling the sender cannot work reliably.
-Pieter
More information about the zeromq-dev
mailing list