简体   繁体   中英

What happends to a failed message in AWS SQS if there is no redrive policy set?

I do understand that when I want my failed messages to be moved to a DLQ I can use a redrive policy, where I can mention the number of retries and the DLQ name.

What happens if I don't set a redrive policy? What is the default retry number and what happens when the number of retries exceeds the threshold?

Your responses are highly appreciated.

SQS messages only get removed from the queue if they've completed successfully - when a consumer grabs a message and then fails it becomes visible again the queue after a while.

In terms of maximum retries that depends on your retention period.

If you want to control this behavior setup a DLQ and set max retries to X number.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM