A Comparative Study of HTTP and MQTT for IoT Applications in Hydroponics

Keywords: hydroponics, IoT, web service, MQTT, HTTP

Abstract

Hydroponics is based on nutrients in water. It must be regularly monitored to prevent plant defects. The Internet of Things has become a solution for remote hydroponic monitoring and is currently being tested on Kelompok Wanita Tani (KWT) Yuan Hidroponik. This system will send data every minute, and each data has a possibility of loss in transmission. There is a chance that this system will be implemented in other hydroponic organizations. As more devices are involved, it will impact server resources. This research will compare message queue telemetry transport (MQTT) and hypertext transfer protocol (HTTP) as popular protocols used in IoT. A test with increasing clients shows that at 50 clients HTTP needs 87% CPU while MQTT needs 22.63% CPU. A test with increasing payload shows that at 10,000 payload HTTP needs 94% CPU while MQTT needs 28.35% CPU. A test with fixed clients and payloads shows that HTTP has a CPU limit based on the clients involved. A transfer time test shows that HTTP needs 177.344 seconds, while MQTT needs 3.24 seconds. An acceptance rate is calculated by incrementing the count for every incoming payload. It shows that HTTP can receive 30,000 payloads, unlike MQTT which can only receive 1680 payloads before losses.

Downloads

Download data is not yet available.

References

J. E. Son, H. J. Kim, and T. I. Ahn, “Hydroponic systems,” in Plant Factory, Elsevier, 2020, pp. 273–283. doi: 10.1016/B978-0-12-816691-8.00020-0.

A. Malik and R. Hartono, “Sistem Otomatis Pembuatan Nutrisi Ideal untuk Tanaman Pakcoy Menggunakan kendali Logika Fuzzy,” Telekontran : Jurnal Ilmiah Telekomunikasi, Kendali dan Elektronika Terapan, vol. 9, no. 2, pp. 154–164, Oct. 2021, doi: 10.34010/telekontran.v9i2.5624.

M. Bender, E. Kirdan, M.-O. Pahl, and G. Carle, “Open-Source MQTT Evaluation,” in 2021 IEEE 18th Annual Consumer Communications & Networking Conference (CCNC), IEEE, Jan. 2021, pp. 1–4. doi: 10.1109/CCNC49032.2021.9369499.

B. Mishra and A. Kertesz, “The Use of MQTT in M2M and IoT Systems: A Survey,” IEEE Access, vol. 8, pp. 201071–201086, 2020, doi: 10.1109/ACCESS.2020.3035849.

N. Nikolov, “Research of MQTT, CoAP, HTTP and XMPP IoT Communication protocols for Embedded Systems,” in 2020 XXIX International Scientific Conference Electronics (ET), IEEE, Sep. 2020, pp. 1–4. doi: 10.1109/ET50336.2020.9238208.

B. Wukkadada, K. Wankhede, R. Nambiar, and A. Nair, “Comparison with HTTP and MQTT In the Internet of Things (IoT),” in 2018 International Conference on Inventive Research in Computing Applications (ICIRCA), IEEE, Jul. 2018, pp. 249–253. doi: 10.1109/ICIRCA.2018.8597401.

C. C. Goh, E. Kanagaraj, L. M. Kamarudin, A. Zakaria, H. Nishizaki, and X. Mao, “IV-AQMS: HTTP and MQTT Protocol from a Realistic Testbed,” in 2019 IEEE International Conference on Sensors and Nanotechnology, IEEE, Jul. 2019, pp. 1–4. doi: 10.1109/SENSORSNANO44414.2019.8940094.

A. A. Fadhel and H. M. Hasan, “Reducing Delay and Packets Loss in IoT-Cloud Based ECG Monitoring by Gaussian Modeling,” International Journal of Online and Biomedical Engineering (iJOE), vol. 19, no. 06, pp. 97–113, May 2023, doi: 10.3991/ijoe.v19i06.38581.

Y. V. R. Darujati, L. K. P. Saputra, Y. Lukito, and W. A. Guspara, “Evaluation of HTTP and MQTT Protocols in the Design of Telemetry Data for Embedded Systems on Smart Wheelchairs,” in 2023 IEEE International Conference on Data and Software Engineering (ICoDSE), IEEE, Sep. 2023, pp. 102–107. doi: 10.1109/ICoDSE59534.2023.10291260.

B. Chen, F. Slyne, and M. Ruffini, “Energy Efficient SDN and SDR Joint Adaptation of CPU Utilization Based on Experimental Data Analytics,” Feb. 2023.

R. Bankston and J. Guo, “Performance of Container Network Technologies in Cloud Environments,” in 2018 IEEE International Conference on Electro/Information Technology (EIT), IEEE, May 2018, pp. 0277–0283. doi: 10.1109/EIT.2018.8500285.

M. W. Asyhari, R. Sigit, and S. Sukaridhoto, “Vending Machine Monitoring System Integrated with Webserver,” in 2019 International Electronics Symposium (IES), IEEE, Sep. 2019, pp. 556–559. doi: 10.1109/ELECSYM.2019.8901588.

R. Bryce, T. Shaw, and G. Srivastava, “MQTT-G: A Publish/Subscribe Protocol with Geolocation,” in 2018 41st International Conference on Telecommunications and Signal Processing (TSP), IEEE, Jul. 2018, pp. 1–4. doi: 10.1109/TSP.2018.8441479.

J. Toldinas, B. Lozinskis, E. Baranauskas, and A. Dobrovolskis, “MQTT Quality of Service versus Energy Consumption,” in 2019 23rd International Conference Electronics, IEEE, Jun. 2019, pp. 1–4. doi: 10.1109/ELECTRONICS.2019.8765692.

S. S. N. Challapalli, P. Kaushik, S. Suman, B. D. Shivahare, V. Bibhu, and A. D. Gupta, “Web Development and performance comparison of Web Development Technologies in Node.js and Python,” in 2021 International Conference on Technological Advancements and Innovations (ICTAI), IEEE, Nov. 2021, pp. 303–307. doi: 10.1109/ICTAI53825.2021.9673464.

B. Mishra, “Performance Evaluation of MQTT Broker Servers,” 2018, pp. 599–609. doi: 10.1007/978-3-319-95171-3_47.

Fifin Ayu Mufarroha, Ahmad Farisul Haq, Arifatul Maghfiroh, Devie Rosa Anamisa, Ahmad Afif Supianto, and Achmad Jauhari, “Quality Assurance of Academic Websites using Performance Testing Tools,” Technium: Romanian Journal of Applied Sciences and Technology, vol. 16, pp. 226–233, Oct. 2023, doi: 10.47577/technium.v16i.9985.

R. A. Atmoko, R. Riantini, and M. K. Hasin, “IoT real time data acquisition using MQTT protocol,” J Phys Conf Ser, vol. 853, p. 012003, May 2017, doi: 10.1088/1742-6596/853/1/012003.

D. Guha Roy, B. Mahato, D. De, and R. Buyya, “Application-aware end-to-end delay and message loss estimation in Internet of Things (IoT) — MQTT-SN protocols,” Future Generation Computer Systems, vol. 89, pp. 300–316, Dec. 2018, doi: 10.1016/j.future.2018.06.040.

C. B. Gemirter, C. Senturca, and S. Baydere, “A Comparative Evaluation of AMQP, MQTT and HTTP Protocols Using Real-Time Public Smart City Data,” in 2021 6th International Conference on Computer Science and Engineering (UBMK), IEEE, Sep. 2021, pp. 542–547. doi: 10.1109/UBMK52708.2021.9559032.

Published
2024-02-18
How to Cite
Nugraha, I. R., Putra, W. H. N., & Setiawan, E. (2024). A Comparative Study of HTTP and MQTT for IoT Applications in Hydroponics. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 8(1), 119 - 126. https://doi.org/10.29207/resti.v8i1.5561
Section
Information Systems Engineering Articles