Skip to main content

Comparison Functionalities of HTTP and MQTT Protocols

  • Conference paper
  • First Online:
31st International Conference on Organization and Technology of Maintenance (OTO 2022) (OTO 2022)

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).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. What is the Internet Protocol? https://www.cloudflare.com/learning/network-layer/internet-protocol/. Last accessed 24 Sept 2022

  2. Tobey, P.: IPv4 and Education: The Basics (2022). https://circleid.com/posts/20220607-ipv4-and-education-the-basics. Last accessed 24 Sept 2022

  3. Ames, I.: TCP/IP Protocol Suite (2019). https://medium.com/software-engineering-roundup/tcp-ip-protocol-suite-ec7ed4888d5d. Last accessed 24 Sept 2022

    Google Scholar 

  4. GeeksForGeeks: Transport Layer Responsibilities. https://www.geeksforgeeks.org/transport-layer-responsibilities/. Last accessed 24 Sept 2022

  5. Grigorik, I.: High Performance Browser Networking. O’Reilly Media (2013)

    Google Scholar 

  6. Fielding, R., Reschke, J.: Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing, RFC 7230. Internet Engineering Task Force (IETF) (2014)

    Google Scholar 

  7. Egli, P.: MQTT—Message Queueing Telemetry Transport Introduction to MQTT, A Protocol for M2M and IoT Applications (2017)

    Google Scholar 

  8. Š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

  9. Bensakhria, A.: IoT—Communicating with Devices: Introduction to MQTT and HTTP (2020)

    Google Scholar 

  10. 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

    Google Scholar 

  11. MQTT Beginner’s Guide? https://www.u-blox.com/en/blogs/insights/mqtt-beginners-guide. Last accessed 24 Sept 2022

  12. 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

  13. An Introduction to MQTT with NestJS Framework. https://myas92.medium.com/an-introduction-to-mqtt-with-nestjs-framework-a69ec55483f0. Last accessed 24 Sept 2022

  14. PostgreSQL Tutorial. https://www.simplilearn.com/tutorials/sql-tutorial/postgresql-tutorial. Last accessed 25 Sept 2022

  15. 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

  16. MQTT Vs. HTTP for IoT. https://www.hivemq.com/blog/mqtt-vs-http-protocols-in-iot-iiot/. Last accessed 24 Sept 2022

    Google Scholar 

  17. 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

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tomislav Kušević .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics