4 ms·
Spring Boot 3 is expected to support native/graal. There is a milestone release I think. There is a Graal Community Edition, which is free. Search for graal an
by nomercy400 4y ago
Spring Boot 3 is expected to support native/graal. There is a milestone release I think.
There is a Graal Community Edition, which is free.
Search for graal and spring pet clinic demo, you will likely find an article reducing startup time 100x (starting pet clinic in 15ms), and reducing memory 2-3x.
I don't know about 'faster', but in my experience most spring applications are RAM bound, not CPU bound. So the native binaries can result in scaling back to smaller and cheaper cloud instances, or smaller VMs. Imagine halving your monthly cloud instance bill, if you are looking for 'worth it'.
If you want to play with a framework where the native part works pretty okay, and still be able to use your dependent injection and dependencies, have a look at Quarkus. They even have some spring 'polyfills'.
- spapas82 4y agoStartup time is the major problem I have with spring, it can be ~ 1 minute in some apps. I'll definitely check Quarkus thank ypu!