Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Horizontally scaling mosquitto broker

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.

like image 275
Dhanushka Dolapihilla Avatar asked Jul 03 '15 09:07

Dhanushka Dolapihilla


People also ask

Is Mosquitto scalable?

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.

Is MQTT full duplex?

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.

What is the difference between MQTT and Mosquitto?

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.


1 Answers

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

like image 100
Teixi Avatar answered Sep 20 '22 08:09

Teixi