TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

New for AWS Lambda – Predictable Startup Times with Provisioned Concurrency

21 pointsby UrbanPiperover 5 years ago

3 comments

mianosover 5 years ago
I'll burn all my reputation for this but every team I worked in complained about having to keep calling lambdas to keep the latency down for all five years. Having to ping end points to do this costs money and taking five years to do this could be interpreted only two ways: 1) they don't care or 2) they make money when you make calls you don't need.
评论 #21708079 未加载
ydnariover 5 years ago
The pricing on this takes a bit of mental processing.<p>So take us-east-1; normally you pay $0.000016667 for every GB-second + $0.20 per 1M requests.<p>By my reading if you turn on reserved concurrency 1 to keep a low-usage Lambda hot it changes to:<p>$0.000004167 for every GB-second: so $10.80 for a 30-day month. Requests are $0.20 per 1M requests - same. Duration changes to $0.000009722 for every GB-second for the Lambda-that-is-kept hot.<p>OK I have to put those on lines next to each other to see it, too many zeroes for my eyes:<p>$0.000016667 on-demand vs: $0.000009722 reserved concurrency<p>Alright, so that&#x27;s 58% of the normal cost, so you can draw a graph and find some crossover point of duration where that gets cheaper - exercise left to the reader - but that fights against the Lambda already being kept hot by usage. I can&#x27;t process intuitively whether this is a good deal or not.<p>It&#x27;s awkward - Lambdas spinning a microVM in 1-2s for cold starts (NodeJS, maybe dotnet, I don&#x27;t use it but I understand other runtimes can stretch well past this) is pretty impressive, but in a chain of calls multiplied up it adds up fast.<p>Using this with autoscaling to try to get ahead of predictable usage patterns, looks potentially useful, I think.<p>With lots of separate Lambdas, using this to avoid cold starts on low-usage functions, I don&#x27;t know, that $10 each adds up fast.
GauntletWizardover 5 years ago
The coding style of lambdas is great. I love it.<p>The operational benefits were never there as were promised. Lambdas on the teams I&#x27;ve worked on have always required more setup, more thought into provisioning, more... Operations... than containers, or even running well-thought-out AMI autoscaling groups before them.<p>I hope this helps. Figuring out how to run lambdas right is a pain.