Lambda invocation duration went from 1000ms to 8000ms when we changed runtime from Nodejs14 to Nodejs20

0

I changed Nodejs runtime v14-->v20 for my Lambda function. Code of the function is not changed EXCEPT mandatory import clause AWS SDKV2->SDKV3 as Nodejs is now using SDKV3.

Has anyone observed similar? Why this huge invocation time increase?

Enter image description here

profile picture
AkiK
gefragt vor 5 Monaten170 Aufrufe
1 Antwort
0
Akzeptierte Antwort

This could be because of longer cold starts which resulted it performance drop. More about it here https://github.com/aws/aws-lambda-base-images/issues/126

profile picture
beantwortet vor 5 Monaten
profile picture
EXPERTE
überprüft vor 5 Monaten
profile pictureAWS
EXPERTE
überprüft vor 5 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen