You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The size of some of our lambdas is quite large. It would be useful to better understand what is causing this, and to bundle them better. To do this, we will bundle our lambda code with esbuild rather than tsc.
Staging lambda sizes, as of 14 September.
staging-get-user-lambda
9.8 MB
staging-update-user-lambda
9.9 MB
staging-demo-review-lambda
10.4 MB
staging-review-lambda
1.2 MB
Tech steps:
Rerecord the size of the lambdas (you can see the lambda sizes by looking in the console)
Swap bundler so we are using esbuild rather than tsc.
Use https://esbuild.github.io/analyze/ to analyse the bundles, to get visibility into whether any packages are being bundled when they shouldn't be.
Check the new lambda sizes, to see if they are smaller. Create follow up ticket to make edits to the esbuild configuration to make the bundle smaller, as well as using the output of the esbuild analysis to make the package size smaller.
Validation steps:
See screenshot of deployed lambdas with size smaller than those listed in event description
The text was updated successfully, but these errors were encountered:
Postestimated to a 5
The size of some of our lambdas is quite large. It would be useful to better understand what is causing this, and to bundle them better. To do this, we will bundle our lambda code with esbuild rather than tsc.
Staging lambda sizes, as of 14 September.
staging-get-user-lambda
9.8 MB
staging-update-user-lambda
9.9 MB
staging-demo-review-lambda
10.4 MB
staging-review-lambda
1.2 MB
Tech steps:
Validation steps:
The text was updated successfully, but these errors were encountered: