I am using Mosquitto broker to implement MQTT protocol. But I am unable to find how clustering can be done in case of mosquitto brokers. Also is there any limitation on numb
The way I have addressed clustering for mosquitto has been to setup a haproxy frontend that reverse proxies to several listening brokers.
I have also gone one step further to utilize DNS SD which the latest versions of mosquitto support with the -S
flag.
However there has been some headaches with this design, namely in application support for dnssd and libresolv on most distros do not honor the domain and search fields in resolv.conf.
Therefore if your working around a legacy environment then I would suggest looking into either rabbitmq, hivemq, or redis pubsub for more production level solution that can be shoehorned into existing footprints.