Cluster forming with Mosquitto broker

后端 未结 7 619
生来不讨喜
生来不讨喜 2020-12-16 23:46

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

相关标签:
7条回答
  • 2020-12-17 00:16

    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.

    0 讨论(0)
提交回复
热议问题