Native image compilation - what’s new, and what’s next? | C2C Community

Native image compilation - what’s new, and what’s next?

Categories: Application Development

January 25, 2023

 

Aaron Wanjala

Java Developer Advocate

Dan Dobrin

Enterprise App Modernization Architect

 

What’s new and what’s next with native image compilation.

Native image compilation has been an emerging technology in the Java community for a number of years. In a sentence, it offers a smaller memory footprint and dramatically faster startup times which makes it especially well suited for Serverless use cases. Earlier in 2022, at I/O, we discussed the technology in more depth and how to get started with the project during its experimental phase. Since then, the project has gained first class support, as promised at SpringOne 2021. This post will discuss where the project has gone this year, what has changed regarding the getting started experience, and provide updated materials to help you leverage the technology on Google Cloud.

What’s new?

In the past year the Spring Native project has made a number of notable improvements in terms of compatibility, bug fixes, and documentation improvements before being superseded by Spring Boot 3’s official native image support. The result of this first class support is that Native Image Support is available as a developer tooling option in the Spring Initializer, and requires far less configuration to get started. It’s also gotten easier to download GraalVM JDKs since the Graal team released the one-line JDK download method.

What else can trip us up?

There are a number of topics that remain somewhat challenging when adopting Native Image compilation. 

Reachability

Ensuring that all libraries that your project makes use of are reachable can sometimes require some specific library metadata to be provided. It’s difficult to provide general advice for these types of issues, but Community Reachability project can save you time and effort when troubleshooting them.

 

 

Click here to read more

Be the first to reply!