AWS Lambda recursive loop detection can now automatically detect and stop recursive loops between AWS Lambda and Amazon S3
Karthik Sakthivel

Karthik Sakthivel @karthiksakthiveltechie

About: I'm an AWS Certified Solutions Architect Associate, with 4+ Yrs (12+ in IT) of experience. Worked in various roles like AWS Cloud engineer, DevOps Engineer, IaC developer, Infra architect.

Joined:
Jul 6, 2024

AWS Lambda recursive loop detection can now automatically detect and stop recursive loops between AWS Lambda and Amazon S3

Publish Date: Oct 10 '24
0 0

What's new at AWS 📢

🔔 AWS Lambda recursive loop detection can now automatically detect and stop recursive loops between AWS Lambda and Amazon S3.

🔔 It would help us preventing unintended usage and billing from runaway workloads.

🔔 Customer misconfiguration or code defect can cause processed events to be sent back to the same Amazon S3(Source) bucket that invoked the Lambda function, causing unintended recursive loops.

🔔 With this launch, Lambda will automatically detect and stop such recursive loops and send customers an AWS Health Dashboard notification with troubleshooting steps.

🥁 What is Lambda recursive loop detection:
⚕️ It is a preventative guardrail that automatically detects and stops recursive invocations between Lambda and other supported services.
⚕️ Importantly recursive loop detection is enabled by default.

🥁 Supported AWS Services & SDKs:
🔺 Amazon S3
🔺 Amazon SQS
🔺 Amazon SNS
🔺 Node.js, Java, Python, .Net

🥁 Important key note:
⚕️ If incase, Lambda function uses intentional recursive loops, you can use the PutFunctionRecursionConfig API to turn off recursive loop detection.
⚕️ When Lambda detects a recursive loop, it stops the function being invoked and notifies you, by default.
⚕️ You can a change a function's default configuration to allow.
⚕️ Lambda uses AWS X-Ray tracing header to detect recursive loops.

📌 Explore the guide to enable Lambda recursive loop detection:
https://aws.amazon.com/blogs/compute/detecting-and-stopping-recursive-loops-in-aws-lambda-functions/

Comments 0 total

    Add comment