Performance and Optimizations
This chapter covers Java Virtual Machine (JVM) and Garbage Collector (GC) optimization techniques to improve application efficiency and scalability. It begins by revisiting the JVM architecture to build a foundational understanding of its components and how they manage memory and resources. The chapter also presents strategies for tuning the GC and explores practical heap sizing and configuration approaches, ensuring minimal latency and improved throughput.
This chapter also explores caching strategies to improve application performance, minimize response times, and alleviate server load. It approaches virtual threads and reactive programming with Spring WebFlux, presenting a non-blocking, event-driven approach to developing highly scalable and responsive applications.
This chapter covers the following topics:
- Optimizing the JVM and GC
- Caching to improve performance
- Introducing reactive programming with WebFlux
By the end of...