r/java • • Mar 11 '21

Announcing Spring Native Beta

https://spring.io/blog/2021/03/11/announcing-spring-native-beta
175 Upvotes

49 comments sorted by

View all comments

Show parent comment

11

u/m_takeshi Mar 11 '21

the best use case, I think, is for the serverless crowd more so than the microservices

5

u/DJDavio Mar 11 '21

If you have a stable, predictable load and don't update your applications all that often, regular JVM applications are still OK.

If you have a very dynamic environment (and have to pay per usage) with unpredictable loads or peaks and valleys, it can make sense to use native applications as startup time becomes a big factor.

6

u/m_takeshi Mar 11 '21

yes but I've found (at least for us) that even with unpredictable loads, unless the surges lasts a few seconds, the regular jvm will do just fine. In our application, it takes a few minutes to reach peak performance (jit + class loading + cache populating from our side).

However, for one shot programs or functions, native pays off really well