In this chapter, we talked about the motivation and benefits of luminous web services, and how they ultimately save memory and improve the performance and throughput of our REST API. We then talked about the basic usage of the @Suspended annotation and the AsyncResponse class. We learned how to use TimeoutHandler and server-side callback instances for fine-grained control. We then used ManagedExecutorService and CompletableFuture for some more syntactic sugar. Finally, we talked about the usage of asynchronous JAX-RS client APIs.
In the next chapter, we'll talk about using server-sent events.