A Question about Async Dispatching
Posted: Thu Jun 12, 2014 1:15 am
In my design, my client uses sync two way and the server uses a thread pool and async dispatching technology(put the session to a queue) and the worker thread will fetch the queue and do the real long time job.
If there are thousands of clients that call the server. I know the listening thread pool will async dispatching the request to the queue, and waiting for the worker threads to execute the request.
But my question is that
1 are these dispatched connections still cost resouces except the memory cost in the request queue.(i'm confused when using async dispatching, what happened to the socket? does it need to maintain a heart beat to the client socket?)
2 if my client uses async two way, is there a benefit.
Thanks
If there are thousands of clients that call the server. I know the listening thread pool will async dispatching the request to the queue, and waiting for the worker threads to execute the request.
But my question is that
1 are these dispatched connections still cost resouces except the memory cost in the request queue.(i'm confused when using async dispatching, what happened to the socket? does it need to maintain a heart beat to the client socket?)
2 if my client uses async two way, is there a benefit.
Thanks