Abstract
The mission and goal of this paper was to compare functionalities for both MQTT and HTTP protocol on the same example to see the advantages and disadvantages of sending and receiving data from server/device. Used tools are Android Studio, Kotlin, NestJS, TypeScript, PostgreSQL and in implementation two protocols were used: HTTP and MQTT protocols to determine advantages and disadvantages of the protocols, several examples are given where a particular protocol could be used in the development of mobile/IoT applications. While talking about MQTT and HTTP protocols, HTTP is one of the globally most used protocols for communication on the World Wide Web (Internet), when MQTT is for sure most used for connecting more devices in the networking called IoT (Internet of Things). Main goal is to show that MQTT can be also used in the mobile application, for example as notification service (server is notifying mobile devices).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
What is the Internet Protocol? https://www.cloudflare.com/learning/network-layer/internet-protocol/. Last accessed 24 Sept 2022
Tobey, P.: IPv4 and Education: The Basics (2022). https://circleid.com/posts/20220607-ipv4-and-education-the-basics. Last accessed 24 Sept 2022
Ames, I.: TCP/IP Protocol Suite (2019). https://medium.com/software-engineering-roundup/tcp-ip-protocol-suite-ec7ed4888d5d. Last accessed 24 Sept 2022
GeeksForGeeks: Transport Layer Responsibilities. https://www.geeksforgeeks.org/transport-layer-responsibilities/. Last accessed 24 Sept 2022
Grigorik, I.: High Performance Browser Networking. O’Reilly Media (2013)
Fielding, R., Reschke, J.: Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing, RFC 7230. Internet Engineering Task Force (IETF) (2014)
Egli, P.: MQTT—Message Queueing Telemetry Transport Introduction to MQTT, A Protocol for M2M and IoT Applications (2017)
Šušnja, M.: Primjena mqtt protokola u internetu stvari, Specijalistički diplomski stručni, Sveučilište u Splitu, Sveučilišni odjel za stručne studije. Split (2020). https://urn.nsk.hr/urn:nbn:hr:228:047974
Bensakhria, A.: IoT—Communicating with Devices: Introduction to MQTT and HTTP (2020)
MQTT vs. HTTP: Which One Is the Best for IoT? https://medium.com/mqtt-buddy/mqtt-vs-http-which-one-is-the-best-for-iot-c868169b3105. Last accessed 24 Sept 2022
MQTT Beginner’s Guide? https://www.u-blox.com/en/blogs/insights/mqtt-beginners-guide. Last accessed 24 Sept 2022
Heller, M.: What is Kotlin? The Java Alternative Explained. https://www.infoworld.com/article/3224868/what-is-kotlin-the-java-alternative-explained.html. Last accessed 23 Sept 2022
An Introduction to MQTT with NestJS Framework. https://myas92.medium.com/an-introduction-to-mqtt-with-nestjs-framework-a69ec55483f0. Last accessed 24 Sept 2022
PostgreSQL Tutorial. https://www.simplilearn.com/tutorials/sql-tutorial/postgresql-tutorial. Last accessed 25 Sept 2022
What is PostgreSQL and Why Do Enterprise Developers and Start-ups Love It? https://canonical.com/blog/what-is-postgresql. Last accessed 25 Sept 2022
MQTT Vs. HTTP for IoT. https://www.hivemq.com/blog/mqtt-vs-http-protocols-in-iot-iiot/. Last accessed 24 Sept 2022
HTTP vs. MQTT: A Tale of Two IoT Protocols. https://cloud.google.com/blog/products/iot-devices/http-vs-mqtt-a-tale-of-two-iot-protocols. Last accessed 25 Sept 2022
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Kušević, T., Blažević, D., Keser, T. (2023). Comparison Functionalities of HTTP and MQTT Protocols. In: Blažević, D., Ademović, N., Barić, T., Cumin, J., Desnica, E. (eds) 31st International Conference on Organization and Technology of Maintenance (OTO 2022). OTO 2022. Lecture Notes in Networks and Systems, vol 592. Springer, Cham. https://doi.org/10.1007/978-3-031-21429-5_5
Download citation
DOI: https://doi.org/10.1007/978-3-031-21429-5_5
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-21428-8
Online ISBN: 978-3-031-21429-5
eBook Packages: EngineeringEngineering (R0)