LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   server which accepts multiple clients (https://www.linuxquestions.org/questions/linux-server-73/server-which-accepts-multiple-clients-592930/)

suresh_rupineni 10-19-2007 01:08 AM

server which accepts multiple clients
 
hi,
i have one problem with concurrent server using threads.my situvation is i want to scan the incoming mails.but some times we will get more mails in that case maximum number of therads i have already created is in scanning process.in that case what is the solution for that one.is there any alternate way instead of multi threading.

regards
suresh

ghostdancer 10-19-2007 01:46 AM

Usually, I always tell people if you going to handle something that is high load (like emails) of transaction, if possible, implement it as a store-and-forward structure. Basically, one system handle all incoming data and store them temporary. The next system process the data and do the necessary work on them. In this case, there is no need to change your program, just setup the front mail server, and configure such that it will concurrently send 20 (if that is the limit) connections to your anti-spam system.

Just my < 2cents suggestion...


All times are GMT -5. The time now is 03:47 AM.