[zeromq-dev] Are socket thread restrictions still in force?

Pieter Hintjens ph at imatix.com
Fri Aug 6 16:40:24 CEST 2010


On Fri, Aug 6, 2010 at 4:04 PM, Matt Weinstein <mattweinstein at gmail.com> wrote:

> But -- the sole worker thread has to do connects / reconnects due to
> the current restriction that sockets are bound to threads.  This could
> cause "slight" latencies :-(

The restriction is still in place but will go away in the not so distant future.

I'd recommend starting with what you have now, using either the
connect/disconnect strategy, or PAIR sockets, but if abstract this
sufficiently that you can move to a better design later with minimum
pain.  It may be that connect/disconnect works fine.  Failover should
be extremely rare in any case.  Also it's not clear that moving a
socket between threads will avoid the need to reconnect in any case
(though it may be hidden).

-Pieter



More information about the zeromq-dev mailing list