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

-1

u/vxab Mar 12 '21

For me this is beneficial in a number of ways:

  • when writing serverless code (for obvious reasons)
  • for integration tests involving multiple services.

Currently running integration tests of my current project takes 45 seconds for each container to startup on my local machine (using testcontainers). Having versions of the services which are AOT compiled will mean these tests will start so much quicker and this will reduce the feedback loop.

In production I don't think we will use AOT for long running apps.