graalvm

rafaeldelboni 2022-09-11T19:42:41.401329Z

Hello folks, what connection pool libraries do you use/recommend with GraalVM? I'm writing a POC of a microservice that runs in a native-image compiled binary and after I added Hikari it increased my binary size to 30Mb. I had to do a bunch of https://github.com/rafaeldelboni/microservice-graalvm/blob/main/resources/META-INF/native-image/reflect-config.json to make it work. Any recommendations?

borkdude 2022-09-11T20:42:07.424119Z

@rafaeldelboni You could check out https://github.com/leafclick/pgmig which uses hikari as well I think

rafaeldelboni 2022-09-11T20:54:13.338819Z

Looks like it did something similar to me in the reflection config, I'm going to use it's config to see if I get any different file size

borkdude 2022-09-11T20:42:38.603279Z

if something adds 30mb to your binary, it could be the result of dynamic require / requiring-resolve etc See overview here https://github.com/borkdude/dynaload

rafaeldelboni 2022-09-11T20:55:21.395329Z

This looks super cool, playing with graalvm makes me feel the need to understand better the JVM.