Question: why we use mqtt protocol?
Answer: MQTT was built to be a low-overhead protocol that strongly considered bandwidth and CPU limitations. It was designed with the ability to run in an embedded environment where it would reliably and effectively provide an avenue for communication. MQTT fundamentally is a publish/subscribe protocol.