-
July 7th, 2009, 04:47 AM
#1
Sending data to a remote machine from a multi-process/multi-thread app
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
-
July 14th, 2009, 06:04 AM
#2
Re: Sending data to a remote machine from a multi-process/multi-thread app
Originally Posted by pankaj.talk
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
I guess you have to assess your business requirement again. It totally depends on what important and what is not really important for you. The "best way" may mean different thing if the important factors are changed.
Nevertheless... My suggestion is to use available software in the market as it will help you to reduce time and cost. One of the example is if you use UNIX operating systems, you can mount NFS and write the data to files. And it will automatically get the data over to the remote machine.
Xander Tan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|