Monday, 1 November 2010

Thoughts on Nagle

Nagle's Algorithm is a way of improving the number of packets sent on slow networks, but the question is whether you should use it in HTTP balancing and scale. If the slow point is your network, then the answer is probably yes - you'll reduce the number of packets sent, and actually the buffers will be allowed to fill, and you'll just send the data faster, but in general, the slow part isn't your network, it's your backends. Where that happens, you want to get the data out as fast as you're getting it, so definitely turn it off.