gpt4 book ai didi

amazon-web-services - AWS Lambda 吞吐量

转载 作者:行者123 更新时间:2023-12-01 13:43:09 26 4
gpt4 key购买 nike

来自 AWS Lambda 常见问题解答:

Q: Is there a limit to the number of AWS Lambda functions I can execute at once?

No. AWS Lambda is designed to run many instances of your functions in parallel. However, AWS Lambda has a default safety throttle of 100 concurrent executions per account per region. If you wish to submit a request to increase the throttle of 100 concurrent executions you can visit our Support Center, click “Open a new case”, and file a service limit increase request.

Q: What happens if my account exceeds the default throttle limit on concurrent executions?

On exceeding the throttle limit, AWS Lambda functions being invoked synchronously will return a throttling error (429 error code). Lambda functions being invoked asynchronously can absorb reasonable bursts of traffic for approximately 15-30 minutes, after which incoming events will be rejected as throttled. In case the Lambda function is being invoked in response to Amazon S3 events, events rejected by AWS Lambda may be retained and retried by S3 for 24 hours. Events from Amazon Kinesis streams and Amazon DynamoDB streams are retried until the Lambda function succeeds or the data expires. Amazon Kinesis and Amazon DynamoDB Streams retain data for 24 hours.



什么构成上述“合理爆发”?有人有具体的数字吗?

最佳答案

没有具体的硬数字,但从日常实践来看,我们已经设法在一个时间点拥有超过 1000 次 λ 调用。

我们有一个通过 Kinesis Streams 触发的调用程序 lambda,调用程序 lambda 从流中获取一批 10 条记录,并为每个记录调用一个工作程序 lambda。根据您将记录输入 Kinesis 的速度,它会触发大量的工作 lambda:

Worker invokation count

只要我们不断将事件推送到 Kinesis,它就可以在任何时候触发 ~5000(并维持一段时间)。

同样的 lambda 也可以通过 API 网关调用。如果 API 网关上没有设置实际的速率限制,我认为它也可以处理相同类型的性能。 lambda 本身是一样的。

请注意,我们是 invoking worker ,调度员功能是
由 Kinesis 触发的那个。

关于amazon-web-services - AWS Lambda 吞吐量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38227658/

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