Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Reading the article, asynchronous processing support in the Servlet 3.0 spec has a very specific use case - it is designed to handle the case where you have an AJAX application that makes requests that trigger potentially long-running processes in the background.</p> <p>The reason we needed something like this was to respond to a problem in the thread-per-request model, which allocates a thread every time the client requests a page from the server, rather than allocating a single thread for the client's entire session. This worked well prior to AJAX when clients would make requests sporadically, but the benefits were lost when AJAX applications significantly increased the number of requests a client would make.</p> <p>Specifically, if an AJAX request triggers something potentially slow or blocking, like a database operation, we are back where we started - threads from the server's threadpool are potentially idle.</p> <p>Asynchronous processing support attempts to mitigate this by putting requests into a centralized queue, such that threads are not always stuck waiting for results of requests that might not have even started being processed yet. In short, we are trying to get the most bang for our buck out of our threads at all times - that is, decreasing the amount of time when they are idle (but could be serving some other connection).</p> <p>Like any new developments, this is not something to be used as a one-size-fits-all tool. Look for the specific case in your application where it is appropriate.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload