Skip to main content

gRPC

gRPC using grpc-spring-boot-starter.

Source Code

GitHub

Details

Initialization of Netty classes should be configured. The native-image.properties file from Netty tries to initialize all Netty classes at image build time, which can cause issues during native image generation.

@NativeHint(
options = {
"--initialize-at-run-time=io.netty",
"--initialize-at-build-time=io.netty.util",
}
)

Native Image Summary

  • Size: 51MB
  • Startup time: 5.0s
  • Memory: 30.3MB