# AWS Lambda Web Functions keep billing memory for 7 minutes after the last request

Original title: AWS Lambda Web Functions keep billing memory ~7 minutes after the last request

> Hacker News story 50470445 · language: en · submitted 2026-11-12
> Web version: https://zeli.app/story/50470445
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 78 · by [seanw265](<https://news.ycombinator.com/user?id=seanw265>) · 💬 31
[original](<https://www.easel.sh/blog/lambda-web-functions-idle-memory>) · [HN discussion](<https://news.ycombinator.com/item?id=50470445>)

## Summary

Easel tested AWS Lambda Web Functions and found execution environments stay alive and bill memory for 5–7 minutes after the last request—up to 1,700 times the request duration in metered memory time. Even after terminating idle environments, AWS logged each exit as a runtime failure. Easel switched to self-operated compute, which delivered 1.5–3× faster warm requests and 3.5× faster cold starts than Web Functions.

## Key quote

> For a 200ms request followed by 345 seconds of inactivity, that's roughly 1,700 times the request duration in metered memory time.

## HN discussion (31 comments)

### [perpil](<https://news.ycombinator.com/item?id=50471808>)

> 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 before it's reaped. I assume this is why the Web Function bills you for about 7 minutes of memory, it needs to hold that memory while it's running in case another request comes in.  If you have a lot of rarely invoked functions, it is cheaper to use Lambda Event Functions.  There you'll pay for GB/s for the duration of your function.
>
> For Event Functions with node, your best possible E2E coldstart time with an AWS service call is sub 500 ms https://speedrun.nobackspacecrew.com/blog/2025/07/21/the-fas... I have not benchmarked web functions yet, but if they are running on the same infrastructure, I would assume the lower limit is similar.

### [tanerakdemir](<https://news.ycombinator.com/item?id=50482519>)

> One day, our customer told us that there was a problem on their system but couldn't find it. We checked all traces in the time range and we saw that the db pool size is insufficient for the request rate so some request hit the time out. Our customer has increased the size and the problem has been solved.

### [netik](<https://news.ycombinator.com/item?id=50470923>)

> This a bit of a “yeah, so?” Statement.
>
> You can configure teardown and minimum workers, and with a busy site, most of the time requests aren’t going to stop enough for this to matter.

### [jedberg](<https://news.ycombinator.com/item?id=50473568>)

> Lambda is built for the generic case.  Amazon was kind enough to open source firecracker, which is what they built Lambda on.  If you want to run workloads that are more specific than what Lambda supports, it's pretty straightforward to use firecracker to build your own optimized Lambda.

### [vrosas](<https://news.ycombinator.com/item?id=50473733>)

> I still wonder why people use lambda over something like GCP's cloud run, although based on my conversations with peers that come from AWS shops they've been living in Amazon's world so long they don't even know it exists.

---

## Cite

- Page: https://zeli.app/story/50470445
- Date: 2026-11-12
- Source: easel.sh (https://www.easel.sh/blog/lambda-web-functions-idle-memory)
- Hacker News: https://news.ycombinator.com/item?id=50470445

## Other languages

- zh: https://zeli.app/zh/story/50470445 · markdown: https://zeli.app/zh/story/50470445.md
- ja: https://zeli.app/ja/story/50470445 · markdown: https://zeli.app/ja/story/50470445.md
- ko: https://zeli.app/ko/story/50470445 · markdown: https://zeli.app/ko/story/50470445.md
- de: https://zeli.app/de/story/50470445 · markdown: https://zeli.app/de/story/50470445.md
- es: https://zeli.app/es/story/50470445 · markdown: https://zeli.app/es/story/50470445.md
- ru: https://zeli.app/ru/story/50470445 · markdown: https://zeli.app/ru/story/50470445.md
