Skip to main content

Performance Optimization

Learn Performance Optimization (Performance Optimization, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Measure First Almost every performance problem in a Spring Boot application is one of a small number of causes, and almost every failed optimisation effort starts by guessing which one. The rule: do not optimise anything you have not measured. A change that makes the code uglier and the application no faster is a pure loss - and "I think this loop is slow" is wrong far more often than it is right. Where the time actually goes In a typical CRUD service, ranked by how often each is the real culprit: Notice that six of the seven are I/O or data-volume problems, not CPU problems. That is why "make...

More lessons in Performance Optimization