Lambda@Edge Performance Node.js 20 vs. Python 3.11

0

I'm going to write a Lambda@Edge function and I'm deciding between the two latest Runtimes of Node.js 20 and Python 3.11. The code will do simple string manipulations to the Path of the request to CloudFront. I'm proficient in both languages. So I'd like to decide on a Runtime language based on performance. Are there any public performance tests to compare the two Runtimes?

Max
已提问 4 个月前379 查看次数
1 回答
0

Hello,

On the question of performance the best way is always do your own tests, as stated on our Operator Guidance on runtime performance. I highly recommend you take a look at AWS Lambda Power Tuning, so you can test for performance and pricing using a Step Function running your code. I think you can fo a lot of improvement in the runtime you are using just tuning the performance,

Bersides that, while not from AWS, you can take a look for the numbers in this external source, AWS Lambda Performance Tuning & Best Practices (2023) .

Also, don't underestimate Developer Experience. If you, our the team developing on a language is superior to another, sometimes some seconds don't make such a different in the performance per se but will affect a lot on how your workflows for upgrading and improvement over time will take place.

profile picture
已回答 4 个月前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则