[zeromq-dev] Is there already native "high level" connection pool?

Michel Pelletier pelletier.michel at gmail.com
Mon Nov 26 20:19:02 CET 2012


Can you explain a little more why you want to do this?  Why not just have
one socket per thread?

-Michel


On Sun, Nov 25, 2012 at 3:29 PM, Stefan de Konink <stefan at konink.de> wrote:

> In order to guarantee that multipart messages generated in different
> threads and different times are synchronously send we are currently
> using a socket per message. This is a wasteful operation, neither we
> want to buffer messages.
>
> Is there currently any thing available that could closely mimic a high
> level connection pool? Fundamentally I am looking for something that
> works like:
>
> socket_pool = zmq_pool(context, ZMQ_PUSH);
> zmq_pool_connect(socktet, 'uri://blabla', 8); // pre-connect 8
>
> socket = zmq_pool_dispatch(socket_pool);
>
> // do the sending
>
> zmq_pool_done(socket_pool, socket);
>
>
> Stefan
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20121126/79a23cdd/attachment.htm>


More information about the zeromq-dev mailing list