Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large ES build bundle size for @gomomento/sdk #1478

Open
lintaonz opened this issue Dec 7, 2024 · 0 comments
Open

Large ES build bundle size for @gomomento/sdk #1478

lintaonz opened this issue Dec 7, 2024 · 0 comments

Comments

@lintaonz
Copy link

lintaonz commented Dec 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant