Recommended Lambda function size

0

What is the best recommended memory size of the lambda function if we have to respond to 50,000 users at the same time ?
In my case, right now lambda function uses maximum of 80 to 100MB of memory for single request.

Edited by: awsIsg on Feb 26, 2019 5:09 AM

awsIsg
demandé il y a 5 ans543 vues
2 réponses
0
Réponse acceptée

The concurrency of the function is not related to the memory size of the function. The Lambda infrastructure will create multiple instances of your function to handle multiple requests, and each instance will have a seperate block of memory of the configured size.

If you're aiming for 50,000 though, you will have other problems, the first of which being the default concurrency limit in lambda being 1000 (https://docs.aws.amazon.com/lambda/latest/dg/limits.html).

Ellison
répondu il y a 5 ans
0

Thanks Ellison, it's really useful.

awsIsg
répondu il y a 5 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions