aws / aws/aws-lambda-roadmap

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

Đang mở
#90 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
196
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Issue không nêu tệp nào trong repository, test hay điểm bắt đầu của phần triển khai. Hãy bắt đầu bằng việc xem xét các quan sát về Node.js 24.x, arm64 và 256 MB, cùng với yêu cầu về pointer compression hoặc một tùy chọn tương đương cho managed runtime; để hoàn tất sẽ cần một giải pháp ở cấp runtime của AWS Lambda hoặc một hướng thử nghiệm được ghi chép.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
aws, node.js
Lĩnh vực
backend, cloud
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
20/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.