为什么将MQTT称为“轻量级"?通讯协议? [英] Why MQTT is called as "light weight" messaging protocol?
问题描述
MQTT是机器对机器(M2M)/物联网"连接协议.它被设计为极其轻巧的发布/订阅消息传递.
MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport.
与其他基于TCP/IP或套接字的协议相比,MQTT为何轻巧"?
In comparison with other TCP/IP or socket based protocols, what makes MQTT "extremely light-weighted"?
推荐答案
MQTT的协议开销非常小,最小的数据包只有2个字节的开销.有效负载与开销之比通常非常好.它也是一种二进制协议,可大大减少线路开销.
The protocol overhead of MQTT is extremely small, the smallest packet has only 2 bytes overhead. The payload-to-overhead ratio is typically extremely good. It's also a binary protocol which reduces the overhead on the wire a lot.
有关轻量级的较老但不错的博客文章可以在这里找到: http://stephendnicholas.com/archives/1217
An older but good blog post about the lightweightness can be found here: http://stephendnicholas.com/archives/1217
如果您对协议的详细信息感兴趣,请阅读以下广泛的博客文章系列: http ://www.hivemq.com/mqtt-essentials-wrap-up/
If you are interested in protocol details, check out this extensive blog post series: http://www.hivemq.com/mqtt-essentials-wrap-up/
这篇关于为什么将MQTT称为“轻量级"?通讯协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!