如何增加 lambda 拉取 dynamodb 流的频率?
How can I increase the frequency that a lambda pull dynamodb stream?
我的 lambda 是由 dynamodb table 流触发的。基于文档:https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html、Lambda polls shards in your DynamoDB stream for records at a base rate of 4 times per second. When records are available, Lambda invokes your function and waits for the result. If processing succeeds, Lambda resumes polling until it receives more records.
这意味着当 dynamodb 上发生更新时,我将有大约 250 百万秒的延迟来触发我的 lambda。有没有办法提高这个拉取率?
您不能更改轮询间隔,只能更改 batch size
或 parallelization factor
等内容。
在这里您可以查看配置的可能性,当通过 DynamoDBStreams 调用 lambda 时:
我的 lambda 是由 dynamodb table 流触发的。基于文档:https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html、Lambda polls shards in your DynamoDB stream for records at a base rate of 4 times per second. When records are available, Lambda invokes your function and waits for the result. If processing succeeds, Lambda resumes polling until it receives more records.
这意味着当 dynamodb 上发生更新时,我将有大约 250 百万秒的延迟来触发我的 lambda。有没有办法提高这个拉取率?
您不能更改轮询间隔,只能更改 batch size
或 parallelization factor
等内容。
在这里您可以查看配置的可能性,当通过 DynamoDBStreams 调用 lambda 时: