Write batching

"이희승 (Trustin Lee)" trustin at gmail.com
Sun Aug 16 22:07:41 EDT 2009


On 08/14/2009 08:10 AM, Yang Zhang wrote:
> Is there any way to batch up outgoing messages at a level near the 
> socket and control when they are sent (e.g. when a buffer fills up, when 
> some time expires, etc.)?  Is there a channel handler that does this, or 
> would this not be fitting for the pipeline architecture?  (We're trying 
> to reduce the number of syscalls, so Nagle's algorithm would not help 
> very much here.)

I think you can implement it as a ChannelHandler.  There's no such
implementation yet but it should be possible.  If not possible, I'd
consider it as a design flaw and should be fixed.

HTH,
Trustin


More information about the netty-users mailing list