Lambda latency is increasing when the traffic is high

0

Hi Team,

I have a lambda which basically performs the data transformation on service response. The lambda duration metrics is slowly spiking when the traffic is increasing.

Referred already :

Things already configured for lambda:

  • Auto scaling the provisioned concurrency of lambda.
  • I have enabled the X - Ray trace for the lambda.
  • Found out that, Invocation phase duration is increasing when there is more incoming traffic.

Screenshots for reference:

Any idea why the invocation phase is increasing & how to handle this ?

1개 답변
0

I don't think there's enough information here to solve your problem.

For example, if your Lambda function is interacting with a back-end database then it's possible that under load that database is responding slower and that is causing an increase in Lambda function time and latency.

But without a detailed analysis of the code and what it is doing it's complete guess work.

If it were me, I'd be using X-Ray, instrumenting the code and then analysing where the additional latency is coming from when the function is under load.

profile pictureAWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠