简体   繁体   English

RaspberryPi MQTT 代理最大连接数

[英]RaspberryPi MQTT broker maximum connections

I want to set up a system of 100-200 sensors that send their data (in a frequency of about 30 mins) to a MQTT broker based on RaspberryPi.我想建立一个包含 100-200 个传感器的系统,将它们的数据(以大约 30 分钟的频率)发送到基于 RaspberryPi 的 MQTT 代理。 Sensors data is obtained in an ESP8266, which would transmit via WiFi to the MQTT broker (which is in a distance of about 2 meters).传感器数据在 ESP8266 中获得,它会通过 WiFi 传输到 MQTT 代理(距离大约 2 米)。

I wanted to know if is it possible for a broker of these characteristics to handle that many connections simultaneously.我想知道具有这些特征的代理是否有可能同时处理那么多连接。

Thank you so much!太感谢了! Diego迭戈

A single broker can handle many 1000s of clients.一个经纪人可以处理数千个客户。

The limiting factor is likely to be the size and frequency of message, but assuming the messages are not 10s of megabytes each then 200 messages spread of 30mins will be trivial.限制因素可能是消息的大小和频率,但假设消息不是每条 10 兆字节,那么 200 条消息传播 30 分钟将是微不足道的。

Even if they are all grouped at the same time rough time (allowing for clock drift) then small messages will again not be a problem.即使它们在粗略的时间同时全部分组(允许时钟漂移),小消息也不会成为问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM