On Mon, Nov 26, 2012 at 3:26 PM, Stefan de Konink <[email protected]> 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. -Michel
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
