如果失败,Lambda 是否会重试该消息?

Does Lambda would retry the message if it fails for that?

我有一个订阅了 AWS Dynamodb 流的 lambda。在这个 lambda 中,对于来自 Dynamodb 流的每条消息,它正在调用 REST api。现在,我的问题是如果这个 REST api 对某些消息抛出错误,而我们从 lambda 处理程序抛出该错误,那么会发生什么? lambda 会再次尝试使用消息调用 REST api 还是会失败或跳过消息?如果它会重试,它会重试多长时间? lambda 是否维护某种检查点

根据 https://docs.aws.amazon.com/lambda/latest/dg/retries-on-errors.html 上的文档:

When a Lambda function invocation fails, AWS Lambda attempts to process the erring batch of records until the time the data expires, which can be up to seven days.