aws / aws/aws-lambda-roadmap

[Lambda][Node.js] Pointer compression / memory-optimized runtime option for large bundles and source maps

オープン
#90 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
196
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi Lambda team,

We hit a practical memory wall with Node.js Lambda and wanted to ask if pointer compression (or an equivalent runtime-level memory optimization) is on the roadmap for managed Node runtimes.

Our use case is a backend Lambda with a single-file minified bundle. Normal artifact size is ~7.6 MB. If we enable source maps for debugging (`NODE_OPTIONS=--enable-source-maps`), artifact size jumps to ~31.7 MB (`index.mjs` + `index.mjs.map`).

What we observed in real traffic tests:
- Runtime: Node.js 24.x
- Arch: arm64
- Memory: 256 MB
- Without source maps: cold starts are acceptable for our use case
- With source maps enabled: cold start increases, and we started seeing `Runtime.OutOfMemory` at 256 MB in the editor/debug environment

We can work around this by disabling source maps or increasing memory, but this is a tough tradeoff:
- disabling source maps hurts debuggability
- increasing memory increases cost for workloads that are otherwise lightweight

Request:
Could Lambda provide either:
1. managed Node runtimes with V8 pointer compression enabled, or
2. another runtime-level memory optimization path for Node workloads with large bundles/maps?

Even an experimental/runtime flag path would already help for debugging-heavy environments.

Thanks for considering this.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

この issue では、リポジトリのファイル、テスト、実装のエントリーポイントが何も指定されていません。まず Node.js 24.x、arm64、256 MB に関する観測結果と、pointer compression または同等の管理ランタイム向けオプションを求める要望を確認してください。完了とするには、AWS Lambda のランタイムレベルの解決策、または文書化された実験的なパスが必要です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, node.js
領域
backend, cloud
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。