Chapter 7. Optimizing Your Requests

In this chapter, we will be looking at different techniques to improve our application's performance.

We will implement classical ways of optimizing a web application: cache control headers, Gzipping, an application cache, and ETags, as well as more reactive stuff, such as asynchronous method calls and WebSockets.

A production profile

In the previous chapter, we saw how to define an application properties file that will only be read while launching the application with a specific profile. We will use the same approach and create an application-prod.properties file in src/main/resources, right next to the existing application.properties file. This way, we will be able to configure the production environment with ...

Get Spring MVC: Designing Real-World Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.