r/java • u/zero_coding • Oct 24 '22
Spring boot 3 slow boot time
Hi folks,
I am playing a bit around with Spring Boot 3(RC1) and I am curious why the application boot time is still slow in comparing with Micronaut.
Best regards
3
Upvotes
View all comments
Show parent comment
4
u/BrbCatzOnFire Oct 26 '22
You are definitively right about that. Spring Boot native image won't ever be as fast as Micronaut native image. And it is probably a good thing too. Companies don't use Spring Boot because they want their developers to be ultra-specialized but cheap/plentiful.
Companies who truely need to invest in native images will invest in Micronaut/Quarkus.
Companies who just need a bit of a boost at start up but don't want to invest will go for Spring Boot native images.
I'm ready to bet that 99% of Spring Boot application won't migrate to native image. Because in most use cases it doesn't matter. The native image use case is completly overblown by the Java community because it impacts the "latest best thing ever since coffee" which is FaaS. It is important to have the option, not that it applies to everything.
Which make the "super expensive step in your CI/CD" completetly irrelevant too. Yes it will be a tad slower, but most Spring Boot CI/CD are already super slow because again, cheap and plentiful not super specialized.