Mosquitto broker- Horizontally scaling

0 votes
Hi,

I'm not too sure if this question is quite generic but what I want to know is, if there's any way to achieve Scaling capabilities, Load Balancing etc. for Mosquitto.

Actually, I am considering mosquitto for a MQTT broker. From what I've come to know, Mosquitto doesn't support Horizontal Scaling.
Sep 5, 2018 in IoT (Internet of Things) by Annie97
• 2,160 points
2,312 views

1 answer to this question.

0 votes
For accuracy, let me mention that other options do exist for high scalability. Several brokers support clustering. Open source ones like verne.mq or rabbitmq.com, also, tackle the challenge of scalability differently. Typically, the subscription and session state is available on all cluster nodes enabling that an MQTT cluster appears to a device as one big server.

With that said, what Mosquitto horizontally scales 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
answered Sep 5, 2018 by Upasana
• 8,620 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

Mosquitto 1.4.2 Websocket support

down vote In the dir mosquitto-1.4.X edit the ...READ MORE

answered Jul 9, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
1,192 views
0 votes
1 answer

What is the maximum message length for a MQTT broker?

It's not entirely clear what you're asking ...READ MORE

answered Jul 17, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
9,052 views
0 votes
0 answers

Mosquitto Secure MQTT connection

My Question is regarding TLS/SSL MQTT connection. ...READ MORE

Jul 23, 2018 in IoT (Internet of Things) by Matt
• 2,270 points
433 views
0 votes
1 answer

MQTT broker for Google App Engine

You had a hard time finding anything ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,228 views
0 votes
1 answer

Eclipse Paho: read data from MQTT Broker

From what I could analyze, you've been ...READ MORE

answered Aug 9, 2018 in IoT (Internet of Things) by DataKing99
• 8,240 points
2,105 views
0 votes
1 answer

Where is published message stored by mosquitto broker if offline?

Well, of course, they are stored! That ...READ MORE

answered Aug 10, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
3,408 views
0 votes
1 answer
0 votes
1 answer

Downloading source code of Android Things

No because AndroidThings is still in preview ...READ MORE

answered Jul 5, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
1,548 views
0 votes
1 answer

Creating Android Things' bundle and pushing it over OTA

Here are all the steps necessary to ...READ MORE

answered Jul 6, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
508 views
0 votes
1 answer

MQTT broker for Windows IOT Core?

 There are a few options available for ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,137 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP