惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Jina AI
Jina AI
N
Netflix TechBlog - Medium
P
Proofpoint News Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
aimingoo的专栏
aimingoo的专栏
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
I
InfoQ
F
Fortinet All Blogs
J
Java Code Geeks
Last Week in AI
Last Week in AI
美团技术团队
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件

InfoQ

GitHub Copilot Open-Source Project Brings Full iOS 27 Virtualization to Apple Silicon From Retrieval to Reasoning: Building Production-Ready Agentic AI Systems with Knowledge Graphs One Decade of Rustls: Evolution, Benchmarks, and Future Roadmap NVIDIA Personal AI Router Distributes AI Tasks across Local Compute Netflix Reworks Conductor for 420 Million Monthly Workflow Executions and 10X Larger Workflows tsgolint Reaches Stable v7, Bringing Go-Powered Type-Aware Linting to Oxlint Terraform AWS Provider Continues Rapid Expansion as AWS Infrastructure Becomes More Complex How To Run on Three Clouds at Once, and When Not To How LinkedIn Trains AI Job Search 8x Faster with Multi-Teacher Distillation Session Traces and Cost Controls Help Diagnose AI Agent Failures Advancing Embedded Go: Recoverable Panics, UEFI, Radio and Hardware Dev Kit Blume: Zero-Config Docs Framework That Turns a Markdown Folder into an AI-Ready Website Redefining GIS: Declarative Symbology and Collaborative Workflows in JupyterGIS Airbnb Cuts Authentication Code by 60% with Server Driven Architecture Kubernetes Promotes KYAML as a Safer, More Consistent Way to Work with Manifests Next-Gen Architecture Playbook: Insights and Patterns for the AI Era From S3 to GPU in One Copy: Rethinking Data Loading for ML Training Copilot Code Review Reaches Azure Repos, Billed Per Review with Reporting Two Days Behind Personality Over Skillset: How Adam Wachtel Builds Engineering Teams Tether: Apple Continuity Like Experience Between iOS and Linux Desktop Machines Twenty Years of jQuery: How a Little Library Rewired Web Development Shopify Introduces Gisting: Compressing LLM System Prompts into Learned Tokens Rigorous Yet Sustainable Human Reviews in the AI Era pnpm 12 Rewrites Package Manager in Rust, Accelerating Installs While Preserving pnpm 11 Workflows Instrumentation at Scale: Having Your Performance Cake and Eating It Too Cohere’s Parse 5 Promises Efficient Multi-Modal Information Extraction From Complex Documents Swiggy Uses 350+ Features and Multi-Task MLP to Predict Customer Lifetime Value OpenAI Details GPT-Live’s Architecture for Continuous Stateful Voice Interaction Beyond Prompting: Context Engineering for Production-Grade AI
Lambda SnapStart Comes to Container Images, Ending a Pack...
Steef-Jan Wiggers · 2026-09-12 · via InfoQ

AWS recently extended Lambda SnapStart to functions packaged as container images, removing a trade-off that has shaped how teams package heavy Python dependencies. Container image functions can hold up to 10 GB, compared with 250 MB for zip archives, but until now choosing containers meant giving up SnapStart and accepting startup times of several seconds while Lambda downloaded image layers and initialized the runtime.

SnapStart takes a snapshot of the initialized execution environment at deployment, caches it, and resumes from it on invocation rather than initializing from scratch. AWS reports startup times dropping to sub-second. The capability previously covered only the managed runtimes for Python, .NET, and Java.

The constraint it removes was visible on Reddit a month before the announcement. A team running pandas and numpy in Lambda described hitting the 250 MB ceiling and resorting to stripping whitespace, comments, and docstrings from their own code and from installed packages, recovering about 5 MB:

While using containers does solve the limit problem, it does remove a critical feature: SnapStart.

The original poster noted that docstrings could only be removed where nothing called __doc__, and pushed back on suggestions to rearchitect, writing that the code was legacy, coupled into the stack, and that the real world has tech debt.

The thread corrected one common assumption. Two commenters pointed to AWS documentation confirming that Lambda layers count against the same 250 MB unzipped budget, so moving pandas and numpy into a layer buys no room. One summarized the position teams were left in:

if you need to keep snapstart, the escape hatch is mounting an efs access point and importing the heavy libs from there at init - you eat the cold start once but stay on zip-based lambda. the whitespace/docstring stripping works but it means you're one dependency bump away from being stuck again.

Most of the thread argued the tool was wrong rather than the packaging. Several commenters suggested ECS Fargate, Step Functions or AWS Batch, on the grounds that pandas-heavy work is batch-oriented and Lambda is a poor fit for it. One noted that container image functions can already start faster than a 250 MB zip in some cases, before SnapStart entered the picture.

Those arguments still hold. What has changed is that teams choosing containers for dependency size no longer pay a startup penalty for it, which narrows the cases where the size limit alone forces a rearchitecture.

Support is not uniform across base images. For AWS base images with Java 11 or later, Python 3.12 or later, and .NET 8 or later, the experience matches zip archives. Any other image, including Node.js, Ruby, and custom bases, must add LABEL com.amazonaws.lambda.feature.snapstart="Allow" to its Dockerfile or implement SnapStart runtime hooks. Without one of those, publishing the version fails during initialization.

Tooling has caught up quickly. Serverless Framework 4.42.0 shipped support within a week of the announcement, after a user opened an issue pointing at it. A maintainer noted that setting snapStart on an image-based function already deployed correctly before the release, which closed the remaining gaps: the framework now rejects an ephemeral storage size above 512 MB combined with SnapStart before deploying, and a failed version publish on a container function prints a hint pointing at the label or runtime hooks rather than a raw CloudFormation message. The same maintainer observed that AWS's own SnapStart documentation still described the Java-only era.

One difference between the two packaging models remains. AWS patches the runtime for zip-based functions. With container images, keeping the base image current is the customer's responsibility, and SnapStart does not change that.

SnapStart for container images is available in all commercial AWS regions except Asia Pacific in New Zealand and Taipei, and can be activated on new or existing functions through the API, console, CLI, CloudFormation, SAM, SDK, and CDK. AWS documents SnapStart pricing separately from standard Lambda pricing.

About the Author

Steef-Jan Wiggers