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
已提問 10 個月前檢視次數 239 次
1 個回答
0
已接受的答案

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
已回答 10 個月前
profile picture
專家
已審閱 10 個月前
profile pictureAWS
專家
已審閱 10 個月前

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

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

回答問題指南