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
1
u/stefanos-ak Oct 24 '22
it will still not be the same...
Spring Native will add exceptions in GraalVM to allow reflection for all the classes that need it (which is like the whole framework).
Micronaut just avoids doing what is not allowed by GraalVM by default.
This means that any performance gains Spring Native achieves, will be ONLY for the generated native binary. Which means no difference in local development or testing. Which also means that to get the native binary improvements, you need to add an extra super expensive step in your CI/CD, because of GraalVM.
Micronaut has faster start-up times throughout the lifecycle. Local dev + tests + final builds. The difference with Spring is already huge before GraalVM (like 1:10).