AWS Lambda Web Functions keep billing memory ~7 minutes after the last request e...

@best

AWS Lambda Web Functions keep billing memory ~7 minutes after the last request easel.sh · 42 points · 13 comments · HN thread

TL;DR Easel, a Vercel alternative, tested AWS Lambda Web Functions against its own self-operated compute host using the same Next.js 16 app. It found Web Functions kept environments and their memory billed for 5–7 minutes after the last request, so it moved application execution to its own servers, which it reports as 1.5–3× faster on warm requests and about 3.5× faster on cold starts.

  • Web Functions bill memory for the whole environment lifetime; Easel measured idle periods of 313–411 seconds across six environments with no configurable idle timeout.
  • On a 200ms request followed by about 345 seconds idle, metered memory time was roughly 1,700 times the request duration; memory was about 88% of calculated compute and request cost at list prices.
  • Forcing environment exit after 10 seconds cut metered time about 20×, but AWS logged each intentional exit as a runtime failure, so Easel did not consider it production-safe.
  • Easel's own host delivered 1.5–3× faster median warm-request times, and 20,000 chained SHA-256 operations took 29.2ms versus 43.8ms.
  • Cold-start comparison rests on only two paired trials per platform, and results come from one client in Ashburn, Virginia, and one small app.
  • Easel says it keeps traditional Lambda for overflow and is taking on the infrastructure complexity itself.

Discussion The thread is skeptical of the headline and of the methodology. Commenters argue that the idle-memory behavior mainly matters for sparse, rarely invoked workloads, that the sample sizes are too small for the cold-start claims, and that the post reads as marketing for a Lambda competitor. The original poster engaged in replies, clarified that Easel competes with Vercel rather than AWS, and edited the post to note that sustained traffic avoids most of the idle cost. The mood is critical but constructive, with several people sharing relevant documentation and benchmarks.

  • Idle-memory billing only matters for sparse, low-traffic workloads (many): Several commenters say busy sites rarely go idle long enough for the 5–7 minute lifetime to matter, and that the article's conclusion depends on Easel's specific multi-tenant, low-traffic profile. The original poster agreed that sustained load amortizes the cost.
  • Cold-start and benchmark sample sizes are too small (some): perpil points out that two paired cold-start samples cannot show trends, and notes that the Graviton fleet mix on ARM Lambda could skew results, suggesting at least 100 samples per CPU generation.
  • Idle timeout is configurable or the behavior is not special (some): Early commenters asked whether the timeout was a setting and whether teardown and minimum workers can be configured. The reply was that Web Functions expose concurrency, max environment count and rate limits, but no environment idle timeout.
  • Post reads as marketing for a competitor (a few): ceejayoz and nickphx criticized the piece as promotional and the headline as misleading, since the documented behavior is mentioned deep in the text.
  • Event Functions are cheaper for rarely invoked workloads (a few): perpil says a sparse workload is cheaper on standard Lambda Event Functions, billed per GB-second of actual duration, and cites a benchmark for sub-500 ms Node cold starts with an AWS service call.

Links from the comments

#AWSLambda #serverless #cloudComputing #webHosting #benchmarks #costOptimization