Reputation: 640
Is there a rabbit mq plugin or application that can subscribe to rabbit mq messages, save them to disk, and then publish the messages back at the same rate that they came in?
I am just starting with rabbitmq and trying to figure out the best way to set up integration tests.
Upvotes: 1
Views: 428
Reputation: 1292
Consider using the RabbitMQ Streams feature introduced in v3.9.0 (2021). You can do interesting things with streams that were not possible with classic queues. Everything is explained here
RabbitMQ Streams and Replay Features, Part 1: When to Use RabbitMQ Streams
Upvotes: 1
Reputation: 2048
Do you want to fanout your messages to 2 separate queues ? If so, create two queues and bind them to a fanout exchange. All the messages published to the exchange will be replicated. You can then configure 1 of the 2 queues to save the messages to disk !
Upvotes: 2