Interview Prep/AWS/Containers and Serverless

What is a Lambda cold start?

BeginnerConceptContainers and Serverless
Answer

When no warm execution environment is available, Lambda creates one: download code, start the runtime, run your initialization code outside the handler, then invoke. This adds latency from tens of milliseconds (Go, Rust, Node) to seconds (large Java or .NET functions, VPC-attached in the past). Subsequent invocations reuse the environment (warm).

Reduce it by shrinking packages, lazy-loading, using arm64, SnapStart or provisioned concurrency.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on Containers and Serverless