What is the best solution for Lamba concurrent invocation causing ACM rate exceeded error

0

In AWS account I have so many lambda which will be invoked concurrently by different AWS resources such as SQS, ALB etc. All these lambda are related different use cases and most of the lambda read certificate using acm.getCertificate() (Javascript SDK) function. I often get rate limit exceeded when there are many lambda invoked same time. Is it due to the ACM get API limit 10 per account? If yes, what is the best solution to read certificate inside lambda?

asked 5 months ago147 views
2 Answers
1

Hi,

the usual way to reduce recurring API calls fetching same value is to use Lambda caching: initial call will be re-used multiple times across Lambda invocations and should suppress the "ACM rate exceeded" rate error

See this post to understand how to implement it efficiently: https://aws.amazon.com/blogs/compute/caching-data-and-configuration-settings-with-aws-lambda-extensions/

Best,

Didier

profile pictureAWS
EXPERT
answered 5 months ago
0

You can try and increase the ACM API limit.

Another option is to read the certificate only once per each function, outside the handler. This way future invocations of the same function, will reuse the certificate.

profile pictureAWS
EXPERT
Uri
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions