Incredible performance increase in Spring Boot 3 applications with CDS 💯🚀🎯

Halil Ural
12 min readOct 13, 2024
Photo by freepik.com

Spring Boot is one of the most important frameworks of Java language and has continued to evolve with Java in recent years. Spring Boot makes it easy to create stand-alone, production-ready Spring-based Applications that you can run.

As you know, there is a lot of competition between languages ​​in the software world right now, and one of these is performance, which is what we measure the needs of today’s industry.

Therefore, languages ​​are constantly updating themselves, making performance metrics more efficient. One of these is Startup times and the other is Reduced Memory Consumption.

This is exactly what CDS (Class Data Sharing) addressed.

Table of Content

· Introduction
∘ What is Class Data Sharing (CDS)
· Setting Up CDS in Spring Boot
∘ Prerequisites and Requirements
· How to set up the project for CDS
· Create and use the CDS Archive locally
· What we gained with CDS
· Create the CDS archive with Spring AOT enabled
· CDS and Spring AOT activation support in Buildpacks
· Conclusion
· Read more…

--

--

Halil Ural
Halil Ural

Written by Halil Ural

Tech writer and software engineer exploring system design, AI, blockchain, and autonomous systems. Sharing insights and knowledge to inspire and educate. 🚀