Is it worth looking at GraalVM native image?

This page summarizes the projects mentioned and recommended in the original post on /r/java

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • Graal

    GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀

  • My project does not have a ton of dependencies and I made sure to limit my use of reflection (not because of graal, just personal preference) but even then I had dependencies that required me to explicitly define runtime reflection (in my case the dependencies were log4j & caffeine) or use an agent which can easily miss some, here is the relevant issue: https://github.com/oracle/graal/issues/3028. I also have some cryptic issues (recently, not being able to compile a static field from a record, who knows why).

  • spring-examples

    Java 17 and Spring-Boot examples and demo projects. (by jveverka)

  • GraalVM native is definitively worth looking at. Still not mature, but getting better. I did small demo project over holidays, and will keep testing this through 2022 with spring and plain java as well. Gains on ARM64 (arm64v8) platforms (raspberry pi 4) are quite visible. If you try this, compilation is slow and takes a LOT of memory. To compile for ARM64, I had to create Quemu VM with 20G of RAM on my x86_64 desktop to create a native image for raspberry pi 4. https://github.com/jveverka/spring-examples/tree/java-17/spring-native

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts