Use RabbitMQ Policy feature to configure behavior for:
- Delayed Messages
- Unroutable Messages
- Dead Letter Messages
For example, following is command to configure dead letter policy for messages more than one week old:
rabbitmqctl set_policy -p event_source Q_TTL_DLX "on_enroll\.\" '{"message-ttl":604800000, "on_exception.dead_letter_exchange":"exception.dead_letter_exchange"}' --apply-to queues<br/><br/>Only a single policy can be applied to a RabbitMQ exchange or queue. Therefore its necessary to create policy CLI commands that combine the settings that apply to all affected resources
Aha! Link: https://ideacrew.aha.io/features/EVTSRC-5