[zeromq-dev] Does ZeroMQ detect and optimize duplicate connections?
Nathan Marz
nathan.marz at gmail.com
Tue May 24 09:22:50 CEST 2011
Besides the backpressure issue you brought up and the overhead of multiple
connections, are there any tradeoffs to consider between having one
connection to a host vs. many from the same process?
On Mon, May 23, 2011 at 11:57 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> Hi Nathan,
>
>
> 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).
>
> Martin
>
--
Twitter: @nathanmarz
http://nathanmarz.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110524/90c59364/attachment.htm>
More information about the zeromq-dev
mailing list