Issue On Multiple MQTT Consumer on same topic

39 views
Skip to first unread message

Shalom Balulu

unread,
May 16, 2018, 10:38:49 AM5/16/18
to MQTT
HI,

I'm started to work with MQTT protocol for communication using Mosquito and RabbitMQ as well (just tried both of them)
I have an issue with the following scenario without any luck to solve it.

Structure : 
1 message broker
1 topic 
2 consumers (on the same topic)
1 publisher 

Flow:

1. consumer A and consumer B connect to the broker each of them with a different client ID and "clearSession" equal to false and subscribe to topic "test"
2. publisher send "hello world" to topic "test"
3. both of the subscribers get the message 


My Goal:


Be able to start multiple workers that will share the load on the queue but I don't want each of them will process the same message
if consumer A got message 1 consumer B will not get it

The issue:

both consumers A and B get message 1

please HELP!

Thanks!

Rahul Gupta

unread,
May 16, 2018, 11:07:13 AM5/16/18
to mq...@googlegroups.com
Please have a look at Shared Subscriptions introduced in MQTT v5 specification committee drafts.

https://www.oasis-open.org/committees/download.php/62986/mqtt-v5.0-wd20.pdf

--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+unsubscribe@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages