What is the best way to send data from an application that runs as multiple processes and multiple threads to another machine?

Take the example of apache web server in worker mode. The server runs as a number of processes with a number of threads within each process. The individual threads service client request.

Assuming that each of the web server threads has to dump some data to a remote machine, what could be the best way to do it? The frequency that which data has to be dumped would clearly depend on the load on the web server. The more the load, the more the number of threads.

Thanks
Pankaj