moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 509 forks source link

Shared Subscriptions with Mosca? #537

Closed mharizanov closed 8 years ago

mharizanov commented 8 years ago

I'm looking at the shared subscriptions that hivemq has and wondering if anything similar is possible? My goal is to have multiple node.js workers load balance and handle same topic.

http://www.hivemq.com/blog/mqtt-client-load-balancing-with-shared-subscriptions/

Any pointers?

mcollina commented 8 years ago

I recommend sticking that logic in the broker in those cases. Listen to the published event. The end result will be faster.