Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Lambda concurrent request limit and how to increase that?

Tags:

aws-lambda

I want 10 million requests handle concurrently.Does AWS lambda is capable of that as they mentioned only 100 concurrent request as AWS lambda Limits?

like image 630
Karambeer Singh Avatar asked Apr 21 '16 10:04

Karambeer Singh


People also ask

What happens when Lambda concurrency limit is reached?

When the burst concurrency limit is reached, the function starts to scale linearly. If this isn't enough concurrency to serve all requests, additional requests are throttled and should be retried. The function continues to scale until the account's concurrency limit for the function's Region is reached.

How many lambdas can run concurrently?

Each region in your AWS account has a Lambda concurrency limit. The limit applies to all functions in the same region and is set to 1000 by default.

How does AWS Lambda serve multiple requests?

AWS Lambda is capable of serving multiple requests by horizontally scaling for multiple containers. Lambda can support up to 1000 parallel container executions by default. there are 1000 requests in 10 secs to the API. How many containers will be created and how many threads.


1 Answers

Inside the AWS Console navigate to the Support Center. Here you can create a Service Limit Increase for AWS Lambda concurrent executions.

However I don't think they will instantly raise your limit that high. Last time I requested an increase from 100 to 5000 it took some discussion and they wanted the following information:

  • Expected average requests per second
  • Expected peak requests per second
  • Expected function duration
  • Function memory size
  • Invocation Type
  • Event Source (If Applicable)

In the end we agreed on 2000, which was fine for my usecase. But they definitely don't blindly accept any request because of course they need to make sure that the requested resources are available at any time.

The support mostly answers within 24h, so if you are lucky the raise may take place in 1-2 days. In my case it took 5-6 days because of the discussion.

like image 98
birnbaum Avatar answered Jan 03 '23 16:01

birnbaum