Skip to content

GraalVM Native Image build for faster startup #19

Description

@kornelrabczak

Description

Current deployment model packages the application as a fat JAR running on eclipse-temurin:21-jre, this results in:

  • slow cold starts (JVM startup + Spring Boot initialization)
  • High memory footprint (JRE base image + JVM heap overhead)

Introduce a GraalVM Native Image build using Spring Boot's native compilation support (spring-boot-starter-parent already supports this via native profile).

Risks & Considerations

  • LadybugDB uses JNI bindings, it will need proper testing with native image
  • Reflection-heavy Spring features may need explicit GraalVM configuration hints
  • Build time will increase for native compilation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions