Posts

Showing posts with the label Mqtt

Cluster Forming With Mosquitto Broker

Answer : You can't do clustering with mosquitto. Some other MQTT brokers out there which support clustering, including HiveMQ. HiveMQ has an elastic cluster ability with auto discovery and a distributed masterless architecture and works very well on cloud providers like AWS or Azure. You can see a full list of all brokers which support clustering here. Disclaimer: I'm a developer of HiveMQ, so this answer may be biased. Original source of this answer: Horizontal scaling for brokers. I just added the plugin support. Two functionalities of mosquitto broker combined could be used to setup a n node cluster. Mosquitto bridge support. Plugin support - mosquitto-auth-plug(1) The bridge functionality is used ONLY to synchronize messages between all mosquitto brokers while the mosquitto-auth-plugin could be used to save authorization and ACL in a single database back end. While setting up the bridge, notice the usage of in/out bridge topics to avoid forwarding loop...