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/
Top comments (0)