Fork me on GitHub
#graalvm
<
2022-09-11
>
rafaeldelboni19:09:41

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?

borkdude20:09:07

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

rafaeldelboni20:09:13

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

borkdude20:09:38

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

rafaeldelboni20:09:21

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