Is there a correct number of dead letter queues that I should have? Can my architecture just have one and share across all queues? How should I make this decision?
Thank you.
Is there a correct number of dead letter queues that I should have? Can my architecture just have one and share across all queues? How should I make this decision?
Thank you.
You should probably have one per queue.
There is, presumably, some reason for having multiple Amazon SQS queues, such as having different data or different methods of processing the data.
If a message lands in a Dead Letter Queue, you would need some way of knowing where it came from. I'm not sure if there is any identifying information to discover the original queue. Therefore, it would be best to have one DLQ per normal SQS queue.
Remember -- you should not plan for messages to go into a DLQ. It's there for when things don't go as intended.
The "eventSourceARN": "arn:aws:sqs:us-west-2:460561121586:{event-source-queue-name}" can be used to identify the original queue.
© 2022 - 2024 — McMap. All rights reserved.