为什么 MQTT 被称为 "light weight" 消息协议?

Why MQTT is called as "light weight" messaging protocol?

根据Wikipedia and Mqtt.org,

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 "extremely light-weighted" 是什么?

MQTT的协议开销极小,最小的数据包只有2个字节的开销。有效载荷与开销的比率通常非常好。它也是一种二进制协议,可以大大减少网络开销。

有关轻量级的较旧但不错的博客 post 可在此处找到:http://stephendnicholas.com/archives/1217

如果您对协议详细信息感兴趣,请查看这个内容丰富的博客 post 系列:http://www.hivemq.com/mqtt-essentials-wrap-up/