メッセージングシステムで送信されたメッセージが正常に処理されなかった場合どうするのか? RabbitMQ 2.8 以降では expire したメッセージや拒否されたメッセージを dead letter として専用の exchange に転送する事ができる。 dead letter になるユースケース 以下のケースで、メッセージは dead letter になる The message is rejected (basic.reject or basic.nack) with requeue=false The TTL for the message expires Enterprise Integratin Patterns との対比 Gregor Hohpe & Bobby Woolf の “Enterprise Integratin Patterns” では 前者は Invalid M
![Dead Letter Channel Pattern with RabbitMQ](https://cdn-ak-scissors.b.st-hatena.com/image/square/6d571aa2dc78bca40288da18125861357f24f91a/height=288;version=1;width=512/https%3A%2F%2Fsiguniang.wordpress.com%2Fwp-content%2Fuploads%2F2012%2F10%2Fenterprise-integration-patterns.jpg)