MQTT代理可以处理多少个客户? [英] How many clients can a MQTT broker handle?

查看:312
本文介绍了MQTT代理可以处理多少个客户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MQTT是一种发布/订阅协议.每当发布者发布到主题时,所有订阅该主题的订阅者都将通过MQTT代理获取消息.我想知道MQTT经纪人可以处理的最大客户数量.有上限吗?

MQTT is a publish/subscribe protocol. Whenever a publisher publishes to a topic, all the subscribers that have subscribed to that topic will get the message via an MQTT broker. I would like to know the maximum number of clients an MQTT broker can handle. Is there any upper limit for that?

推荐答案

一个MQTT代理可以服务多少个客户端,取决于您使用的MQTT代理软件.大多数MQTT代理可能仅受可用内存量的限制(每个套接字使用一块内存),因此,这成为一个问题,即哪个代理软件以最有效的方式利用内存(和其他资源).当然,某些经纪人可能还有其他限制.

How many clients an MQTT broker can serve depends on the MQTT broker software you're using. Most MQTT brokers will likely only be limited by the amount of memory available (each socket uses a chunk of memory) and it therefore becomes a question of which broker software utilizes the memory (and other resources) in the most efficient manner. Of course some brokers might have other limitations.

在实践中,您还必须查看可以对连接的客户端执行的操作-某些经纪人的行为可能有所不同(从性能角度来看),具体取决于连接的客户端数量等.

In practice you'd also have to look at what you can do with the connected clients - some brokers may behave differently (performance wise) depending on how many clients are connected etc.

这篇关于MQTT代理可以处理多少个客户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆