AWS Lambda Web Functions keep billing memory ~7 minutes after the last request
Easel abandoned AWS Lambda Web Functions because they bill for idle memory for up to seven minutes after requests, opting instead to build custom compute infrastructure.
summary is enough The post details an important pricing quirk and architectural pivot, but the core findings and benchmarks can be easily grasped in summary.
summary
Easel evaluated AWS Lambda Web Functions for web apps but found they bill for idle memory for five to seven minutes post-request with no configurable timeout. This renders them uneconomical for sparse or unpredictable workloads. Consequently, Easel built its own compute hosts, which surprisingly outperformed Web Functions in initial warm-request and cold-start benchmarks. Commenters debated sample sizes and compared the behavior to GCP Cloud Run while discussing container lifecycle management.
key points
- AWS Lambda Web Functions maintain execution environments and bill for memory for 5 to 7 minutes after the last request.
- For applications with low or unpredictable traffic, idle memory accounts for an overwhelming majority of total compute costs.
- Easel's self-operated compute host delivered 1.5 to 3 times faster warm requests and 3.5 times faster cold starts in initial tests.
who should read it
Cloud architects and backend engineers designing serverless or containerized web application hosting.
discussion mixed
consensus
Commenters generally agree that while 7-minute idle persistence is standard for maintaining warm containers under steady load, it creates poor economics for sparse, unpredictable traffic.
pushback
A few commenters criticized the post's cold-start benchmarks for relying on a tiny sample size of only two trials.
It isn't clear what you mean by this: "The cold-start comparison has only two paired samples" Are you saying these results are based on a sample size of 2 coldstarts? If so, that's way too small to draw any conclusions. I don't know whether the web functions fleet is currently homogeneous, but I know that for ARM, the event functions fleet has a mix of Graviton2/3/4 of varying percentages. You probably need a sample size of at least 100 for each cpu generation to see trends.
It's not documented but if you make one request with event functions, the Lambda runtime lives for about 7 minutes …
It explains the operational rationale behind the 7-minute Lambda container lifecycle and contrasts Web Functions with traditional event functions.
Generated by an LLM from the article and thread. Check the sources before relying on it.