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
preguntada hace 4 meses378 visualizaciones
1 Respuesta
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
respondido hace 4 meses
profile picture
EXPERTO
revisado hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas