Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invoking lambda from lambda: AWS Lambda concurrent execution limits

My current AWS Lambda function invokes another AWS Lambda function but I want to make sure that the invoke succeeded. After looking at concurrent execution limits for AWS Lambda I am trying to figure out what would happen if the concurrent limit is hit and I tried to invoke the Lambda from another Lambda. For now, I am solving this problem by putting messages in an SNS but I rather prefer invoking Lambda directly avoiding the indirection.

like image 486
Chenna V Avatar asked May 11 '26 16:05

Chenna V


1 Answers

The best way to handle the concurrent limit is to use a Kinesis stream rather than SNS. The number of shards will limit the number of lambda invoked. And if it pertinent for you, you can take several messages at once, which you can't do with SNS, and that can lead to hit the concurrent limit.

like image 124
DaMaill Avatar answered May 14 '26 04:05

DaMaill



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!