- Newest
- Most votes
- Most comments
Hello.
I think a Lambda recurrence loop may be detected.
It's hard to imagine the detailed configuration from just the text, but if the configuration is like SQS1 → Lambda → SQS1, it will be detected as a loop and the process will stop.
https://docs.aws.amazon.com/lambda/latest/dg/invocation-recursion.html
If your function is invoked more than 16 times in the same chain of requests, then Lambda automatically stops the next function invocation in that request chain and notifies you. If your function is configured with multiple triggers, then invocations from other triggers aren't affected.
Not answering the question but have you considered using Step Functions in this scenario? It seems like you're doing a bit of extra work (in terms of handling SQS message sending and receiving) that you might not have to.
Relevant content
asked 3 years ago
asked a year ago
- AWS OFFICIALUpdated 5 days ago

Thank you so much for your insightful response. It appears that you have identified the exact issue I am facing with the Lambda function recursion loop. The configuration you described (SQS1 → Lambda → SQS1) matches mine, and it makes perfect sense that AWS would detect this as a loop and stop the process to prevent recursion issues, as detailed in the documentation you linked.
This was precisely the information I needed to understand the behavior I was observing. I will adjust my approach to avoid this recursion and reconfigure my setup accordingly.
Thank you again for your help. Your guidance has been invaluable!