Open andreea96 opened 1 year ago
After some digging i found out the package increase is from de deps folder that contains the librdkafka files, is this folder necessary during runtime or can it be removed after installation?
Also encountering this for lambda deployments. I haven't had a chance to dig in yet, but at a glance it looks like the files copied over during build could have expanded:
It looks like the node_module could be paired down considerably, it would be great to consider holistically pairing things down with .npmignore and only preserving the necessary artifacts following the node-gyp build.
Environment Information
Steps to Reproduce when upgrading the library from v2.13 to v2.15 we were unable to deploy to lambda as the size of the package increased from 150MB to 340 MB. The reason we need this update: when using version 2.13 we get the following error on publishing:
Unsupported value "SASL_SSL" for configuration property "security.protocol": OpenSSL not available at build time
with the following dockerfile config (where the npm ci is taking place):
and producer config for auth looks like this:
I have noticed there was an update of the librdkafka to v2.0.2 in : https://github.com/Blizzard/node-rdkafka/releases/tag/v2.15.0 so i suspect this is what may have fixed this openssl issue, how could we go around this issue while still being able to upload to lambda. The package is so large that i am unable to upload it neither as a lambda layer.