2 ms·
You would likely not be able to turn them to native binaries without a ton of work — spring uses reflection very heavily, so you would have to list every class
by kaba0 4y ago
You would likely not be able to turn them to native binaries without a ton of work — spring uses reflection very heavily, so you would have to list every class that would get reflectively checked (including spring internals).
There is spring native that will solve it for the most part, but I’m not sure how hard it is to change an existing spring web app to that.
GraalVM has a community edition, which is free, I’m not sure about the license.
And it is likely not worth it, performance will likely be worth, but memory usage and startup speed will decrease. It can be worth it for command line apps or some tiny microservice that is mostly idle.
- spapas82 4y agoThank you for the information! Doing some research myself I found some things about the license and integration with spring here: https://www.graalvm.org/faq/ https://www.graalvm.org/faq/ ; it seems that no license is needed for graalvm! I'll also take a peek on spring native it seems to be available in beta: https://github.com/spring-projects-experimental/spring-native https://github.com/spring-projects-experimental/spring-nativ...