Description
A service queue implementation to store messages that the messaging system cannot deliver to their destination or cannot be processed.
Where to use
- Debugging failed messages. \n
- Preventing poison messages from blocking the system.
Real World Example
If a message fails to process 5 times, it is moved to the DLQ. DevOps can later inspect why it failed.
Code Example
class DeadLetterQueue(DLQ):
def __init__(self):
pass
def execute(self):
print('Executing Dead Letter Queue (DLQ)')
