Sergey Evstifeev
Sergey Evstifeev

Reputation: 5328

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)?

Upvotes: 6

Views: 3907

Answers (2)

Sergey Evstifeev
Sergey Evstifeev

Reputation: 5328

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

Upvotes: 2

pinepain
pinepain

Reputation: 12859

RabbitMQ cluster, as specified in Clustering Guide and Highly Available Queues will do what you want in the right way.

Upvotes: 0

Related Questions