corvus-ch / rabbitmq-cli-consumer

Consume RabbitMQ messages into any cli program
MIT License
236 stars 37 forks source link

Example for dead letter queue #84

Open arturslogins opened 4 years ago

arturslogins commented 4 years ago

Hello!

I there any good example how to define dead letter queue?

For example i can't figure out how to correct configure it in rabbitmq-cli-consumer config file.

I have one queue "jobs" And i want to create dead letter queue "dead-jobs"

In application side my rabbitmq-cli-consumer are working with "jobs" queue and if there is and fault from application and exit code is for example Negative acknowledgement or worker can't process message then this message is moved to dead-jobs queue.

Can any one help me with correct rabbitmq-cli-consumer configuration file and a little bit explain how this all work?

Thanks!
Logins :)