Lost messages in Rabbitmq used as MqttBroker

115 views
Skip to first unread message

Abhishek Biswas

unread,
Feb 3, 2021, 4:59:49 AM2/3/21
to rabbitmq-users
Hi,
I am using rabbitmq as a mqtt-broker and also build a mqtt-client in c# to consume messages from a particular topic . 
The problem is if my mqtt client gets disconnected for days , is there anyway to retrieve those old messages ? 
The published messages are marked as persistent and retain=true .

Please help.

Abhishek Biswas

unread,
Feb 4, 2021, 7:19:05 AM2/4/21
to rabbitmq-users
Am I missing something ..

John Pfersich

unread,
Feb 7, 2021, 10:44:47 PM2/7/21
to rabbitm...@googlegroups.com
for one thing, you have to explain which versions you are using, and for another, on this mailing list, people that provide service aren't at your beck and call. Multiple days might not elicit an answer.

/—————————————————————/
For encrypted mail use jgpfe...@protonmail.com - Free account at ProtonMail.com


On Feb 3, 2021, at 01:59, Abhishek Biswas <itsabhish...@gmail.com> wrote:

Hi,
--
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/f0393b06-26e8-4e29-85e4-6eb1a692ce04n%40googlegroups.com.

Abhishek Biswas

unread,
Feb 8, 2021, 12:22:10 AM2/8/21
to rabbitm...@googlegroups.com


First I am using Rabbit MQ 3.8.1 and Erlang 21.3 .
My query was : I am using RabbitMq as a mqtt broker . Publishers always sent messages with retain flag true in a certain interval  . In a situation when the consumer disconnected from the broker for hours , lost data  during that period . Is there any way to recover the data ?   

Second @ John Pfersich , Thanks for the reply and  Sorry I did not know you are here.  

Any help would be appreciated. 

You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/riq93ZJCIog/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/B44A7372-EECC-40D4-8574-D7AF21E287BF%40gmail.com.


--
Abhishek

Wesley Peng

unread,
Feb 8, 2021, 1:10:27 AM2/8/21
to RabbitMQ Users
All the exchange, queue, binding, messages should be declared as durable. In this case messages should not be discarded except a system error happens. Thanks 

Abhishek Biswas

unread,
Feb 10, 2021, 12:29:16 AM2/10/21
to rabbitm...@googlegroups.com
Thanks for your help . 

Is there any way from Mqtt Client-Side to check this things like EXchanges,Queues,Bindings durable as you mentioned . 
I am using M2Mqtt in .Net 
I can see the queues are durable by default from Web-Interface RabbitMq .



--
Abhishek
Reply all
Reply to author
Forward
0 new messages