menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Cloud News

>

AWS Server...
source image

Dev

1M

read

82

img
dot

Image Credit: Dev

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

  • The primary purpose of this video is to demonstrate how DLQ work for AWS Lambda functions, with a specific focus on configuring a Dead Letter Queue for failed events.
  • 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.
  • In this article, I will demonstrate an alternative approach to managing failed events: using a Dead Letter Queue (DLQ) with Amazon SQS.
  • To test this, I will update the code to intentionally raise an exception, ensuring the function fails and generates a qualifying event.
  • Additionally, I showcased how to invoke the lambda function asynchronously using AWS CLI command.
  • In this article, I demonstrated how to configure a Dead Letter Queue using SQS for a Lambda function.
  • Both approaches—using a DLQ or a destination—require asynchronous invocation of the Lambda function.
  • Once you have completed the setup, ensure you delete the Lambda function to avoid unnecessary resource usage. Additionally, delete the SQS queue and CloudWatch log group. If you created any new roles during the process, remember to delete those as well.
  • If you missed the earlier article on setting up destinations for failed events, you can watch it using the link provided in the description below.

Read Full Article

like

4 Likes

For uninterrupted reading, download the app