1 個回答
- 最新
- 最多得票
- 最多評論
0
Hello!
Currently, there are no service incident reports related to this. Could you please check the Lambda function logs and find Duration
and Init Duration
values for the function executions you describe?
As you have read, this happens when the function invocation fails, or the execution takes more than 5 seconds. Lambda will then retry two times.
If you have not done it already, check the sections Optimizing static initialization and Memory and computing power here, to optimize your function execution times.
Finally, when running logic like yours, my recommendation would be to always add idempotency.
已回答 2 個月前
相關內容
- 已提問 6 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
Thank you for your response! I had no idea about the Init Duration - adding that to the Duration, the execution time does appear closer to 5 seconds. I've upgraded the AWS js SDK from v2 to v3 to hopefully optimize the performance. Hopefully that will work. Thank you!