Question: why mqtt is better than http?
Answer: MQTT is data centric whereas HTTP is document-centric. HTTP is request-response protocol for client-server computing and not always optimized for mobile devices. ... Besides, publish/subscribe model provides clients with independent existence from one another and enhance the reliability of the whole system.