Hi,
Here is my setting:
- Lambda memory_size: 160M
- Node.js: v20.0
- ESBuild:
bundle and minify are true
When I use Esbuild Bundle Size Analyzer to analyse my bundle index.js, I notice that @gomomento/sdk significantly increases the size of my Lambda function.
- @gomomento - 742.3kb
- goole-protobuf - 246.5kb
- @grpc - 224.3kb
My final bundle size grows from 620kb to 1.9m. The Lambda initial time is 2.25s (700ms is cold start time).
Question:
Can @gomomento/sdk be modularized like AWS SDK v3? For example, I use cache only. Can I exclude any modules related to topic etc?
Cheers,
Tao
Hi,
Here is my setting:
bundleandminifyare trueWhen I use Esbuild Bundle Size Analyzer to analyse my bundle index.js, I notice that
@gomomento/sdksignificantly increases the size of my Lambda function.My final bundle size grows from 620kb to 1.9m. The Lambda initial time is 2.25s (700ms is cold start time).
Question:
Can
@gomomento/sdkbe modularized like AWS SDK v3? For example, I usecacheonly. Can I exclude any modules related totopicetc?Cheers,
Tao