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

Michel Pelletier pelletier.michel at gmail.com
Tue Nov 27 05:14:56 CET 2012

On Mon, Nov 26, 2012 at 3:26 PM, Stefan de Konink <stefan at konink.de> wrote:

> On 11/26/12 22:41, Apostolis Xekoukoulotakis wrote:
> > Just buffer the message parts yourself and send them when the last part
> > has come.
> > Why not do that?
> That requires huge amounts of memory allocation in the webserver,

Multipart messages will require the same amount of memory, they are not
sent over the wire until the entire message is ready to be sent.  You're
buffering one way or the other.

I think my previous suggestion is still valid.  Send the chunks as soon as
they arrive as individual messages at do not attempt to reconstruct them
right away.  Have a downstream consumer reconstruct them.  Keep your HTTP
server dead simple and let the pipes do the work.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20121126/0eb66f26/attachment.htm>

More information about the zeromq-dev mailing list