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.

gefragt vor 2 Jahren270 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen