8

So I am building a small application that uses SQS. I have a simple handler process that determines if a given message is considered processed, marked for retry (to be re-queued) or is not able to be processed (should be sent to dead letter).

However based on the docs it would appear the only way to truly send a message to DL is by using a redrive policy which operates over # of receives a message has racked up. Because of the nature of my application, I could have several valid retries if my process isn't ready to handle a given message, but there are also times I may want to DL a message I have just received. Does AWS/Boto3 not provide a way to mark a specific message for DL?

I know I can just send the message myself to another queue I consider my own DL, I would just rather use AWS' built in tools for this.

1 Answer 1

5

I don't believe there is any limitation that would prevent you from sending the message to the deal-letter-queue by yourself.

So just read the message from the Q, if you know it needs to go to the DLQ directly, send it to the DLQ and remove it from the regular Q.

1
  • 3
    Yea that's what I ended up doing. I wish AWS would implement that, I can't imagine it's an uncommon operation
    – Mike
    May 1, 2018 at 16:02

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.