Skip to main content

Async Request Processing

Learn Async Request Processing (Performance Optimization, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Async request processing : the servlet thread is released while the work continues elsewhere, and the response is written later. Why : a container thread is a limited resource; freeing it during slow work lets the server handle more concurrent requests. Return types : a controller can return Callable , DeferredResult , WebAsyncTask , CompletableFuture or a streaming body.

More lessons in Performance Optimization