Introduction
Sometimes messages sent to a topic in Google Cloud Pub/Sub cannot be processed correctly. Dead letter topics help catch these problematic messages so they are not lost and can be reviewed or retried later.
When your subscriber fails to process some messages and you want to keep those messages for later analysis.
When you want to avoid losing messages that cause errors in your application.
When you want to separate normal message flow from problematic messages to improve system reliability.
When you want to monitor and alert on message processing failures.
When you want to retry processing failed messages after fixing the issue.