We are using Quarkus which has a dependency on mongodb-crypt. This library is quite huge… around 29MB. Our application is packaged as an Azure Function and this library is half the size of our total application. We would like to keep our application as small as possible. Therefor the question what this library does and are there other options to provide this library? Maybe to split this up in smaller libraries so that Quarkus has options what needs to be implemented?
mongodb-crypt is an optional dependency for the Java driver itself, and is only required for applications that are using https://www.mongodb.com/docs/manual/core/queryable-encryption/ or https://www.mongodb.com/docs/manual/core/csfle/.
I’m not sure why (or if) Quarkus takes a hard dependency on this library, so it’s possible that there is something in Quarkus itself that relies on it.
Regards,
Jeff