I am considering mosquitto for a MQTT broker. From what I've read, I realized that Mosquitto doesn't support Horizontal Scaling.
So far all other criteria of my requirements can be met with Mosquitto.
I'm not sure if the question is too generic or broad but what I want to know is, if there's any way to achieve Scaling capabilities, Load Balancing etc. for Mosquitto.
MQTT brokers can be scaled vertically or horizontally. For example, the Mosquitto broker provides horizontal scalability options. Horizontal scalability is hard to achieve as it requires manual configuration and in-depth knowledge of networks.
MQTT is standard publish/subscribe protocol which is used by embedded devices. It is also used as common M2M interactions. In this device connection is maintained and it uses full duplex TCP connection.
Mosquitto is lightweight and is suitable for use on all devices from low power single board computers to full servers. The MQTT protocol provides a lightweight method of carrying out messaging using a publish/subscribe model.
Mosquitto can scale horizontally with is bridge capability where one Broker copies all messages to another Broker.
You can see a basic configuration example here: http://e.verything.co/post/62163759361/bridging-two-mqtt-brokers
You also should take a look at the MQTT Malaria to test the scalability of your setup https://github.com/remakeelectric/mqtt-malaria
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With