Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RabbitMQ back up messages in specific queue

I have a service that consumes messages from a RabbitMQ queue (posting to the queue is done through a topic exchange). Assuming that the service can theoretically fail and lose its state, possibility to back up all the messages for disaster recovery would come in handy.

The first idea that comes to mind is adding another binding for the topic exchange so that the messages are also posted to another queue, and creating a custom service for backing up messages that would listen on that queue. But this sounds much like a potential reinvention of the wheel. Is there a simpler way to do this with RabbitMQ (plugin/existing service/etc)?

like image 542
Sergey Evstifeev Avatar asked Nov 01 '22 15:11

Sergey Evstifeev


1 Answers

Found out that it's possible to do with a combination of a firehose and a tracing plugin.

like image 147
Sergey Evstifeev Avatar answered Nov 09 '22 15:11

Sergey Evstifeev