Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Lambda > what happens when reach concurrent limit

Lambda has a 100 function limit.

What happens when you submit a 101 function when 100 are already running?

Will it:

  • fail with an error
  • queue up
like image 622
Snowcrash Avatar asked Jul 03 '18 13:07

Snowcrash


1 Answers

If you are talking about Concurrent executions there isn't a limit of 100. The limit depends on the region but by default it's 1000 Concurrent executions.

To answer your question: As soon as the Concurrent executions limit is reached the next execution gets throttled. Each throttled invocation increases the Amazon CloudWatch Throttles metric for the function.

If your AWS Lambda is invoked asynchronous AWS Lambda automatically retries the throttled event for up to six hours, with delays between retries. If you didn't setup a Dead Letter Queue (DLQ) for your AWS Lambda your event is lost as soon as all retries fails.

For more information please check the AWS Lambda - Throttling Behavior

like image 65
MaiKaY Avatar answered Sep 22 '22 02:09

MaiKaY