Hacker News new | ask | show | jobs
by hoppp 19 days ago
Isn't that a configurable parameter?
2 comments

Not as far as I can tell. Web Functions let you configure concurrency, maximum environment count, and request rate limits, but there's no setting for how long an environment stays alive after its last request. The configurable timeout applies to individual requests, not the environment itself.

I measured between 5 and 7 minutes of idle time (after the last request had ended) across six environments. I was able to cut this short by exiting the process myself, but AWS records this as a runtime error so IMO it's not suitable to rely on in production.

Here's the AWS scaling documentation. I'm happy to be corrected if I missed anything.

https://docs.aws.amazon.com/lambda/latest/dg/web-functions-s...

Yes. Buried several paragraphs past the headline is a note saying "AWS documents this behavior."

This is marketing for a Lambda competitor.

What's the default though? Because if the 7min thing happen with default settings, then it's definitely blog post worthy.
Hmm. Are you sure? The article says AWS documents the behavior, but there is no way to configure it. They tried forcing an early shutdown, but that caused AWS to record an error event.
What's documented is that memory is billed for as long as the environment is active. What's not documented is how long those environments actually remain alive after their last request, and there's no configurable idle timeout.

And for context, Easel.sh is an alternative to Vercel, not AWS. Easel actually uses traditional Lambda as part of its core infrastructure. I was hoping Web Functions could replace some of the custom infrastructure we'd built on top of it, but the idle-memory billing made it a poor fit for our workload.

I thought the findings were worth sharing.