gpt4 book ai didi

amazon-web-services - S3 事件的 AWS Lambda Backlog

转载 作者:行者123 更新时间:2023-12-04 12:51:08 25 4
gpt4 key购买 nike

我想知道当 Lambda 受到限制并且无法跟上事件时,Lambda 如何处理积压的 S3 事件。 S3 事件会排队吗?排队多长时间?

假设场景是 lambda 函数由 S3 存储桶上的 POST 事件触发,其并发限制为 10。假设突然有几百万个 POST 事件......这些事件是否会排队以及允许多长时间一组 10 个 lambda 实例来处理这一系列事件?

最佳答案

我假设调用(由 S3 Events Rule 触发)遵循与通过 AWS SDK 触发 Lambda 相同的行为。 , AWS CLI , 等等。

这意味着很多few million POST events您在假设场景中提到的将不会被处理,甚至重试也不适用于所有事件。

只要您没有设置 DLQ(死信队列),这些事件就会被丢弃,您就没有机会恢复它们。

我链接了一些文章以查找有关 AWS Lambda 行为的更多信息。

AWS Lambda - Understanding Retry Behavior

Asynchronous invocation – Asynchronous events are queued before being used to invoke the Lambda function. If AWS Lambda is unable to fully process the event, it will automatically retry the invocation twice, with delays between retries.



AWS Lambda - Dead Letter Queues

AWS Lambda directs events that cannot be processed to the specified Amazon SNS topic or Amazon SQS queue. Functions that don't specify a DLQ will discard events after they have exhausted their retries.

关于amazon-web-services - S3 事件的 AWS Lambda Backlog,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49764634/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com