[zeromq-dev] Costs of creating sockets?

Martin Sustrik sustrik at 250bpm.com
Fri Oct 1 08:20:55 CEST 2010

Hi Ralf,

> So how expensive is it to create (and then destroy) many sockets and
> connect them to the exception handling one?

Creating socket is cheap. Connecting it actually creates the connection, 
which is more or less as expensive as creating the underlying connection 
(TCP connection in this case).

> When is a connection
> actually opened?

When zmq_connect is called, but in async manner.

> Does a
> context pool connections so if sending sockets are created on the same
> context they can reuse the same connection?



More information about the zeromq-dev mailing list