Back to Browse

AWS Serverless: Invoke Lambda function asynchronously and use DLQ for failed events

88 views
Dec 27, 2024
12:03

In my previous video, I explained how to set up Lambda destinations for handling failed events, demonstrating how to store these events in an S3 bucket. AWS Lambda destinations also support other options such as SQS, SNS, EventBridge, or another Lambda function. In this video, I will demonstrate an alternative approach to managing failed events: using a Dead Letter Queue (DLQ) with Amazon SQS. With a DLQ, failed events are captured in a SQS queue, providing a mechanism for troubleshooting and recovery. Both approaches—using a DLQ or a destination—require asynchronous invocation of the Lambda function. For this demonstration, I will use the AWS CLI to invoke the function asynchronously. You will notice similarities with the previous video, as the key difference lies in configuring a DLQ instead of a destination to store failed events. If you missed the earlier video on setting up destinations for failed events, you can watch it using the link provided in the description below: https://www.youtube.com/watch?v=QqZspZoOYsY

Download

0 formats

No download links available.

AWS Serverless: Invoke Lambda function asynchronously and use DLQ for failed events | NatokHD