Hacker News new | ask | show | jobs
by catlifeonmars 17 days ago
Does the ~7 minutes get amortized over sustained load (due to container reuse)? I feel like the article doesn’t consider the shape of the traffic and workloads in its analysis of why lambda is not a good fit.
2 comments

In general I think the answer to your question is yes. If you have sustained load, the environment will often be reused. When that happens, there is little “idle” time that you’re billed for.

I don’t mean to imply that Lambda Web Functions are a bad fit for every workload, just that they are a bad fit for our workload as a result of this behavior.

Edit: I made an update to the post to hopefully clarify this.

Vercel's Fluid Compute (probably built on the same underlying stack given that AWS is their investor) has a much more "correct" behavior
Did you speak with the service team before making a decision to evacuate? What did they say about it?
The article is terrible at conveying the intent of the author.

When you perform six requests simultaneously, lambda will start six concurrent instances to process your requests as quickly as possible and then let them be idle for seven minutes.

This makes lambda more expensive than just having a single server that runs all the time.