Can we use RabbitMQ to store the message in durable queue permanently ?

166 views
Skip to first unread message

Rajiv Ranjan

unread,
Jun 4, 2020, 6:46:30 PM6/4/20
to rabbitmq-users
Hi,
       I am working on the chat application building using spring websocket and stomp. what is happening here is user message is getting queued in rabbitmq while chatting but on client side after consuming using stomp subscribe feature to the same queue, message in the queue getting disappear. Is this the ideal behavior of the durable queue ? Can't we use RabbitMQ to store the message permanently even after consumption? I want to achieve feature showing user history chat when user goes online or offline using rabbitmq only with no additional Mysql database. Is it possible? 

Michael Klishin

unread,
Jun 4, 2020, 7:16:18 PM6/4/20
to rabbitm...@googlegroups.com

No, this is not what RabbitMQ was designed for. Use a data store, which will also give you more sophisticated ways of querying

your data set.

 

On 05.06.2020, 01:46, rabbitm...@googlegroups.com on behalf of Rajiv Ranjan wrote:

 

Hi,

       I am working on the chat application building using spring websocket and stomp. what is happening here is user message is getting queued in rabbitmq while chatting but on client side after consuming using stomp subscribe feature to the same queue, message in the queue getting disappear. Is this the ideal behavior of the durable queue ? Can't we use RabbitMQ to store the message permanently even after consumption? I want to achieve feature showing user history chat when user goes online or offline using rabbitmq only with no additional Mysql database. Is it possible? 

--
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-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/fc2bef5b-eb86-4a2d-aa6c-ce70a2945f2bo%40googlegroups.com.

Wesley Peng

unread,
Jun 4, 2020, 8:47:10 PM6/4/20
to rabbitm...@googlegroups.com
You shouldn't use RMQ for persistent data storage.
Instead you could choose a dedicated storage service, like the quite hot project recently: Apache Ignite.
But you could have RMQ in front of storage service as message queues for IM application.

Regards.

5 June 2020, 06:46:38, by "Rajiv Ranjan" <rajiv...@gmail.com>:

Hi,
       I am working on the chat application building using spring websocket and stomp. what is happening here is user message is getting queued in rabbitmq while chatting but on client side after consuming using stomp subscribe feature to the same queue, message in the queue getting disappear. Is this the ideal behavior of the durable queue ? Can't we use RabbitMQ to store the message permanently even after consumption? I want to achieve feature showing user history chat when user goes online or offline using rabbitmq only with no additional Mysql database. Is it possible? 

Rajiv Ranjan

unread,
Jun 4, 2020, 10:55:16 PM6/4/20
to rabbitmq-users
okie thanks!! I got my clarification.


On Friday, June 5, 2020 at 6:17:10 AM UTC+5:30, Wesley Peng wrote:
You shouldn't use RMQ for persistent data storage.
Instead you could choose a dedicated storage service, like the quite hot project recently: Apache Ignite.
But you could have RMQ in front of storage service as message queues for IM application.

Regards.

5 June 2020, 06:46:38, by "Rajiv Ranjan" <rajiv...@gmail.com>:

Hi,
       I am working on the chat application building using spring websocket and stomp. what is happening here is user message is getting queued in rabbitmq while chatting but on client side after consuming using stomp subscribe feature to the same queue, message in the queue getting disappear. Is this the ideal behavior of the durable queue ? Can't we use RabbitMQ to store the message permanently even after consumption? I want to achieve feature showing user history chat when user goes online or offline using rabbitmq only with no additional Mysql database. Is it possible? 
--
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 rabbitm...@googlegroups.com.

Michael Klishin

unread,
Jun 5, 2020, 10:31:01 AM6/5/20
to rabbitm...@googlegroups.com

For *long term* persistent data storage 😉

Reply all
Reply to author
Forward
0 new messages