How to import and export messages to queue in RabbitMQ

2,344 views
Skip to first unread message

Send Kanoon

unread,
Aug 10, 2018, 5:04:59 AM8/10/18
to rabbitmq-users
We are developing a system which uses rabbitMQ for sending and receiving data between its clients and servers.
The internet connection may sometimes be lost.

1- Can all the messages in the queue be exported to a file ? And somehow be imported to the client using this file?

2- In a different scenario, a client wants to send some messages to the queue but it has no internet connection! So we want to export all the message from client and make a file and somehow send it to the server (eg. transfer it to another location which has internet), Is this possible to import this file to the queue?

Michael Klishin

unread,
Aug 10, 2018, 5:15:31 AM8/10/18
to rabbitm...@googlegroups.com
See [1] and [2] (I'm not assuming you use the Java client here but it's a good overview of a feature multiple clients provide these days).

You can "archive" published messages however you please locally and republish them when connection recovers. Some publish to a local
RabbitMQ node and use Shovel [3] to move data to a remote location, letting Shovel worry about reconnection and recovery. It's not a perfect
tool but unless the network is really bad it usually does a decent job. Also relevant here: [4].


--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages