1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
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.
respondido há 2 meses
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
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!