Asynchronous Socket programing and Thread Pool

  • Thread starter Thread starter Manish
  • Start date Start date
M

Manish

Hello !

We are developing a GPRS Connection GateWay Server. The Clients (remote
devices) wil get connected to this Server and we are expecting about 50,000
to 100000 such connections within 30 min duration. The peak Load or
concurrent load we are expecting is about 10,000 to 30,000 socket
connections. And each socket session (collecting Data from remote device)
lasting for about 10 to 60 seconds ,in this communcation around 25 commands
to the device are sent and for each command the device will reply.

We have chosen Asynchronous Socket I/O (with call back function i.e.
BeginReceive(...) and BeginSend(....)) programming modal for server
development.

We have follwing queries

Q1. How it will be possible to handle 10,000 to 30,000 Sockets at a time by
ThreadPool Threads ?
Q2.What should we keep the MaxThread value (i.e. in threadpool) i.e.
SetMaxThread and MinThreadValue i.e. SetMinThread ?
Q3.How can we see how many threads are under use from threadpool (This is
not reflected in TaskManager) ?
Q4.How to set Connection ,Read and Write Time outs of the socket?

Waiting for your reply

Regards
Manish
 
Back
Top