Hi all
I use emq as my mqtt server and it supports shared mqtt subscriptions. I want to use this functionality to have more than one flow have an mqtt in node that will subscribe to the same topic, as to offer round robin load sharing on mqtt.
I have tested this functionality by writing two clients that subscribe to $share/accQ/topic1 and one server that publishes to topic1. This works great, but when I create a mqtt out node that publishes to topic1 and two mqtt in nodes that subscribe to $share/accQ/topic1, connected to a debug node, both nodes processes the payload, instead of a round robin implementation.
Has anybody tried this approach before and got it to work?
Regards
Morne
Update: I tested with the two node-red mqqt in nodes plus the 2 nodejs clients all at the same time and found that there is definitely round robin processing happening, with either one of the nodejs client processing or both the node-red mqtt in nodes processing. So, it looks like node-red mqtt in node will always process the payload even in a shared subscription setup.