Lambda billing duration for normal traffic

0

While I made single request at a time, lambda duration is 500 ms or less. But when I set 50 users concurrency and 10 users started per sec (spawn rate) in LOCUST, lambda duration would be 15000 ms. My Mongodb free tier is 500 connection limit and limit is not reached anytime. When I give traffic , billing duration would be more but 500 ms for very small traffic. Is it lambda side problem or Mongodb side problem?

**I have made load testing on single api.

demandé il y a 2 ans270 vues
1 réponse
0
Réponse acceptée

Is it possible that as your concurrency goes up the MongoDB is taking longer to respond? I would instrument your Lambda function - you can do this by using log statements inside the function and measuring the time between them; or you can use something like X-Ray.

profile pictureAWS
EXPERT
répondu il y a 2 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