Subscribe function

42 views
Skip to first unread message

Abhishek Biswas

unread,
Jun 26, 2024, 1:25:32 AM (9 days ago) Jun 26
to rabbitmq-users
Hello
I want to know more about the Subscribe Function in RabbitMq. How it works etc. 
I have noticed after receiving data from a specific topic , if the data processing fails or hangs due to failure or some problem in database then the client stops receiving data from other subscribed topics anymore.

I am using Rabbitmq as Mqtt Broker version 3.12 and Erlang 26 in Windows




Luke Bakken

unread,
Jun 27, 2024, 6:35:10 PM (8 days ago) Jun 27
to rabbitmq-users
Hello,

My guess is that your MQTT client application isn't handling an error or exception correctly, and then fails to consume messages from other topics. RabbitMQ won't just "cancel" a subscription.

Without a way to observe what you report, we can't assist you. If you can provide code for us to run to demonstrate the issue, we can explain it.

Thanks,
Luke

Abhishek Biswas

unread,
Jun 28, 2024, 2:26:40 AM (7 days ago) Jun 28
to rabbitm...@googlegroups.com
Thanks Luke,
You are right that my client does not implement a timeout after it receives data and troubled processes it. But the client remains connected.
It only fails to receive any message from other topics.
Can it be the  API Subscribe and Listen Function that is failing ? I am using M2MQTT . 

If you help me understand how Subscribe and Listen Function works deeper it will be great.    





 


--
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/ZAiAhL9sPW4/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/8184df93-c6ea-4587-a713-428b74b36542n%40googlegroups.com.


--
Abhishek

Luke Bakken

unread,
Jun 28, 2024, 10:11:22 AM (7 days ago) Jun 28
to rabbitmq-users
Hello,

I have already stated what you need to provide for me to continue assisting you - code that I can run to reproduce the behavior you report. I certainly do not have the time to teach RabbitMQ / MQTT internals. RabbitMQ is open-source, after all.

Abhishek Biswas

unread,
Jun 29, 2024, 10:45:51 AM (6 days ago) Jun 29
to rabbitm...@googlegroups.com

Thanks.. I can understand.


--
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/ZAiAhL9sPW4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages