TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Tips to Optimize Your AWS Lambda Performance

14 点作者 deepdmistry超过 1 年前

3 条评论

mannyv超过 1 年前
If you actually have a consistent&#x2F;constant load then you don&#x27;t need to pay for Provisioned Concurrency to prevent cold starts since you technically will have the equivalent with your actual usage.<p>Also, if you&#x27;re using Lambda to ingest data consider using one lambda as a dispatcher to SQS and another hanging off that SQS queue for processing. That allows you to control concurrency better since you can set the batch size + concurrency on the SQS trigger.<p>By doing the above makes your critical path super-fast, because you&#x27;re doing no processing. That works great if the incoming data needs no response from the back-end.
评论 #37864061 未加载
niekze超过 1 年前
&quot;You should set your PC value equal to your peak TPS divided by the execution time. For example, if you have a peak of 50 TPS and your execution time is half a second, the most effective PC value would be 25.&quot;<p>This confused me. Wouldn&#x27;t 50 &#x2F; 0.5 be 100?
评论 #37862103 未加载
farialima超过 1 年前
I still don&#x27;t understand why anyone would use lambdas - except if you 1) trust Amazon blindly, and 2) have no understanding whatsoever of how a server works, and therefore absolutely unable to set one up (even as a AWS instance, LOL).<p>From my experience, they are clumsy, complex to set up, to manage, you can&#x27;t easily have CI&#x2F;CD (I still don&#x27;t know how you get the code of a lambda from and to git ?!?!), etc, etc...<p>Is it just me ? Am I alone ?<p>:)
评论 #37863079 未加载
评论 #37865320 未加载
评论 #37862933 未加载
评论 #37864092 未加载