[rabbitmq-discuss] bulk loading

Emile Joubert emile at rabbitmq.com
Mon Aug 20 09:46:30 BST 2012


Hi Jonathan,

On 19/08/12 16:27, Jonathan Camp wrote:
> Is there a method for loading a static set of messages? I have a set
> of X million tasks that I need to load into various task queues on a
> regular interval (once a week). Rather than publish the same set one
> at a time, over and over again, I am hoping there is a way to do a
> bulk load.

There's no special bulk loader, but you can write one in term of
basic.publish that loads messages one at a time.

If you want to reset the broker to a previous state then you can restore
a copy of the database directory while the broker is shut down. Only
persistent messages will survive this operation and you will lose any
state that existed on the broker prior to the restore with this method.


-Emile



More information about the rabbitmq-discuss mailing list