Why MQTT is called as “light weight” messaging protocol?

前端 未结 1 870
说谎
说谎 2021-01-18 20:04

As per Wikipedia and Mqtt.org,

MQTT is a machine-to-machine (M2M)/\"Internet of Things\" connectivity protocol. It was designed as an extremel

1条回答
  •  醉话见心
    2021-01-18 20:51

    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.

    An older but good blog post about the lightweightness can be found here: http://stephendnicholas.com/archives/1217

    If you are interested in protocol details, check out this extensive blog post series: http://www.hivemq.com/mqtt-essentials-wrap-up/

    0 讨论(0)
提交回复
热议问题