[zeromq-dev] Does ZeroMQ detect and optimize duplicate connections?
sustrik at 250bpm.com
Tue May 24 08:57:46 CEST 2011
> If I make connections to the same host/port from two different threads
> in the same process off the same ZeroMQ context, will ZeroMQ detect
> this? I'm wondering if it will automatically optimize things by only
> making one underlying connection to the target.
No. Merging multiple on a single TCP connection blocks all the feeds
when one feed starts applying backpressure (say HWM is reached on
receiving side). Not a good idea.
> Otherwise, what are the implications, performance and otherwise, of
> ZeroMQ connections?
Exactly the same as those of the underlying transport (TCP in this case).
More information about the zeromq-dev