Horizontally scaling mosquitto broker

Dhanushka Dolapihilla picture Dhanushka Dolapihilla · Jul 3, 2015 · Viewed 9k times · Source

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.

Answer

Teixi picture Teixi · Jul 9, 2015

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