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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南