Asynchronous Socket programing and Thread Pool

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top