Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is AWS Lambda retry and Dead letter queue?

Shulou Source: shulou.com Published: 2022-05-31 11:03:30 10月01日 Update

This article introduces the knowledge of "what is AWS Lambda retry and Dead letter queue". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

AWS Lambda allows you to set Debugging and error handling. After an exception occurs in Lambda and the maximum number of retries is reached, the following information is put into the selected SNS or SQS topic as a DLQ-Dead Letter Queue, including

Messages received by the original Lambda (based on the total size of SNS and SQS messages, may be intercepted, I guess, especially Kinesis messages will be larger)

RequestId of the original Lambda

ErrorCode (three-digit HTTP error code)

ErrorMessage, that is, the original Lambda throws the getMessage () information of Exception to intercept 1 KB string

And if Lambda wants to use DLQ, it must also set the IAM role of the current Lambda to have the corresponding sns:Publish and sqs:SendMessage permissions for the SNS/SQS theme.

AWS Lambda basic retry rule: the Kinesis message will be retried indefinitely until the message expires, and if an exception occurs for the SNS or SQS message, it will be retried twice.

This is the end of "what is the AWS Lambda retry and Dead letter queue". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Message dead letter queue original topic information content more knowledge practical maximum successful next dilemma size character string actual situation number Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Technology Linux Huawei macOS