Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 875
Yoel Nisanov Avatar asked Jan 26 '23 02:01

Yoel Nisanov


1 Answers

From Using AWS Lambda with Amazon SQS:

Lambda polls the queue and invokes your function synchronously with an event that contains queue messages.

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. The maximum number of batches that can be processed simultaneously by an event source mapping is 1000.

like image 83
Marcin Avatar answered Jan 31 '23 02:01

Marcin