Skip to main content

Dead Letter Queue

A dead letter queue (DLQ) is a secondary queue used in messaging systems to store messages that cannot be successfully processed or delivered by the primary system. These messages are often referred to as "dead letters" because they cannot be processed by the main system, typically due to errors or issues such as unresponsive consumers, malformed messages, or invalid routing.

In webhook systems, dead letter queues can be used to improve reliability and fault tolerance.

When a webhook is triggered, the event is sent to the subscriber as an HTTP request. If the subscriber fails to acknowledge or process the webhook request, it is considered a failure. Instead of discarding the failed webhook request, the system can move it to a dead letter queue. This allows the webhook provider to store and track failed webhook requests, and potentially retry them later when the issue has been resolved.

Dead letter queues help ensure that important event information is not lost due to temporary issues or failures in the webhook system, making them a valuable component of a resilient and fault-tolerant webhook infrastructure.

Looking to send webhooks at scale?