I am using HTTP and MQTT protocols to send data in JSON format from my local machine to a server in the Cloud.The server has Thingsboard installed. I am sending data to 256 Thingsboard devices. While doing performance testing for HTTP and MQTT, I found that HTTP took lesser time to send the data whereas I had heard that MQTT is a faster protocol. So my question was - under what conditions is MQTT a faster protocol than HTTP?
Asked
Active
Viewed 427 times
2 Answers
0
MQTT is a faster protocol because it does not make it compulsory for delivery guarantees, but you still can use QOS 0, 1, or 2.
Suitable for small size - high recurring transmission.

HD2020
- 23
- 6
0
In the case where you have devices that are polling the server for updates via http, mqtt will be faster because the devices maintain a persistent connection and will get the updates immediately without having to wait for the poll interval.

tavis
- 200
- 2
- 9