简体   繁体   English

SQS 是否以异步/同步方式触发 lambda?

[英]Does SQS trigger lambda in an async / sync manner?

Will a standard SQS that I configured to invoke a lambda when it receives message invoke "many lambdas" or only 1 lambda at a time?我配置为在收到消息时调用 lambda 的标准 SQS 会调用“许多 lambdas”还是一次只调用 1 个 lambda?

From Using AWS Lambda with Amazon SQS :将 AWS Lambda 与 Amazon SQS 结合使用

Lambda polls the queue and invokes your function synchronously with an event that contains queue messages. Lambda 轮询队列并与包含队列消息的事件同步调用您的 function。

It will invoke as many as required , depending on your reserved concurrency limits:它将根据您保留的并发限制调用尽可能多的请求

Lambda increases the number of processes that are reading batches by up to 60 more instances per minute. Lambda 将读取批次的进程数每分钟增加多达 60 个实例。 The maximum number of batches that can be processed simultaneously by an event source mapping is 1000 .事件源映射可以同时处理的最大批次数为 1000

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM