restatedev / sdk-java

Restate SDK for JVM Languages
https://restate.dev
MIT License
25 stars 5 forks source link

GraalVM native image support #23

Open slinkydeveloper opened 1 year ago

slinkydeveloper commented 1 year ago

Check SDK compiles using GraalVM native image.

slinkydeveloper commented 1 year ago

A starting point here https://how-to.vertx.io/graal-native-image-howto/ and here https://graalvm.github.io/native-build-tools/latest/gradle-plugin.html

slinkydeveloper commented 1 year ago

A blocker to support graalvm is the protobuf classes support: https://github.com/restatedev/sdk-java/issues/125. There's this tool we could try https://github.com/ricantech/protobuf-graalvm-feature

slinkydeveloper commented 1 year ago

If we get rid of gRPC/Protobuf official libraries completely, we also solve this issue. To do so we would need just our code generator for services, and we could use https://github.com/HebiRobotics/QuickBuffers for the protobuf library.

slinkydeveloper commented 11 months ago

For the time being this is not high priority. Lambda users can use Lambda ColdStart for JVM to get good startup time.