V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
laters
V2EX  ›  程序员

有没有免费的 MQTT 负载均衡方案

  •  
  •   laters · 43 天前 · 1628 次点击
    这是一个创建于 43 天前的主题,其中的信息可能已经有所发展或是发生改变。

    想实现多台 MQTT 服务器,客户端只连接一个地址如:10.10.10.10:8888 ,如果 MQTT1 挂了,MQTT2 可以接管....但不影响客户端收发消息

    目前使用 nginx upstram 会导致客户端往 10.10.10.10:8888 上 publish 消息时,有可能有一个 MQTT 服务器收不到

    8 条回复    2024-08-07 11:05:38 +08:00
    wizzer
        1
    wizzer  
       43 天前
    https://gitee.com/wizzer/MqttWk

    通过 redis 的 pub/sub 实现的集群+消息缓存,可根据自己需要改成其他 MQ 服务
    caryqy
        2
    caryqy  
       43 天前
    emqx 集群
    qiaofanxing
        3
    qiaofanxing  
       43 天前
    nginx+emqx
    StinkyTofus
        4
    StinkyTofus  
       43 天前
    emqx +1
    luozic
        5
    luozic  
       43 天前
    emqx +1
    huifer
        6
    huifer  
       43 天前
    EMQX 是一个很好的方式。Nginx 多实例只需要发到一台 MQTT 服务器上就行了,不需要所有 MQTT 服务器都收到消息吧。

    我目前也在做物联网项目,主要不是在 MQTT 服务器上的负载问题。 我正在做的项目介绍可以请大家看看: https://iot-dev-egi.pages.dev/
    isSamle
        7
    isSamle  
       43 天前
    nginx + rabbitmq
    tubinorg
        8
    tubinorg  
       42 天前
    emqx 集群
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5684 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:56 · PVG 09:56 · LAX 18:56 · JFK 21:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.