in reply to Re^2: Advice needed on an interesting read-ahead over network file IO problem
in thread Advice needed on an interesting read-ahead over network file IO problem

If your communication runs on top of HTTP, ensure that you are not creating a new TCP connection for every request but using a persistent one.

Regarding read ahead, the usual practice is to set a minimum chunk size, say 64k. Any read below this size reads 64k, returns the required length and caches the remainder data for future requests.

The optimal minimum chunk size to use depends on the network characteristics (bandwidth and latency). Just experiment to find it out!

  • Comment on Re^3: Advice needed on an interesting read-ahead over network file IO problem