You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Since a servlet is blocking, a normal HTTP communication makes the thread wait. So there is a possibility that all the threads in the pool can be used up. By using the asynchronous http client framework, the thread can be released back into the pool and be made available for other purposes until the answer comes back. When the answer comes back, a callback is fired which then relays the message back to the client.

  • No labels