Analisis Komparasi Protokol Websocket dan MQTT Dalam Proses Push Notification

Authors

  • Fauzan Prasetyo Eka Putra Universitas Madura
  • Farhan Muslim Universitas Madura
  • Nor Hasanah Universitas Madura
  • Holipah Universitas Madura
  • Reni Paradina Universitas Madura
  • Royfal Alim Universitas Madura

DOI:

https://doi.org/10.60083/jsisfotek.v5i4.325

Keywords:

Push Notification, Websocket, MQTT, IoT

Abstract

Teknologi push notification merupakan aspek krusial dalam aplikasi modern, yang memungkinkan pengiriman informasi secara instan kepada pengguna. Dua protokol komunikasi yang sering digunakan untuk mendukung fitur ini adalah Web Socket dan MQTT. Dalam penelitian ini, dilakukan analisis komparasi antara kedua protokol ini untuk memahami karakteristik, efisiensi, dan responsivitas masing-masing. Web Socket, dikenal karena koneksi dua arahnya (full-duplex), menyediakan kanal komunikasi persisten antara client dan server. Protokol ini memungkinkan pengiriman pesan secara real-time antara client dan server, sehingga sangat cocok untuk implementasi push notification yang membutuhkan responsivitas tinggi. Di sisi lain, MQTT (Message Queuing Telemetry Transport) dirancang khusus untuk keperluan Internet of Things (IoT). Fokus utama MQTT adalah pertukaran pesan terdistribusi, yang memungkinkan komunikasi efisien antara perangkat IoT. Penelitian ini menggunakan metode eksperimental dan pengukuran kinerja untuk mengevaluasi efisiensi dan responsivitas kedua protokol dalam mengirimkan push notification. Salah satu aspek yang diukur adalah kecepatan pengiriman pesan, yang melibatkan waktu delay dan waktu respons dari kedua protokol. Selain itu, penggunaan sumber daya seperti penggunaan CPU juga menjadi perhatian dalam penelitian ini. Hasil penelitian menunjukkan bahwa Web Socket cenderung lebih efisien dalam mengatasi push notification dalam skenario aplikasi real-time. Protokol ini menunjukkan waktu delay yang lebih rendah dan waktu respons yang lebih cepat dibandingkan dengan MQTT. Hal ini menunjukkan bahwa Web Socket mampu memberikan pengalaman pengguna yang lebih responsif dalam menerima push notification. Namun, MQTT menunjukkan keunggulan dalam pertukaran pesan terdistribusi pada lingkungan IoT. Protokol ini dirancang khusus untuk efisiensi dan kehandalan dalam komunikasi antara perangkat IoT. Dalam konteks penggunaan IoT, MQTT dapat memberikan performa yang lebih baik dalam mengirimkan push notification pada jaringan yang terdistribusi. Dengan demikian, kesimpulan dari penelitian ini adalah bahwa Web Socket lebih efisien dalam mengatasi push notification dalam skenario aplikasi real-time, sementara MQTT unggul dalam pertukaran pesan terdistribusi pada lingkungan IoT. Pemilihan protokol yang tepat harus didasarkan pada kebutuhan dan karakteristik aplikasi yang ingin diimplementasikan.

References

Hansen, M., et al. (2012). "Push Notification Systems: A Survey." IEEE Communications Surveys & Tutorials.

Zhang, X., & Shen, H. (2013). "Research on Web Socket Protocol and Its Application in Communication Systems." 2013 Ninth International Conference on Computational Intelligence and Security.

Estep, E. (2013). "Mobile HTML5: Efficiency and Performance of Websockets and Server-Sent Events."

Muhammad, et al. (2018). "Performance Comparison of WebSocket and Server-Sent Events for Push Notification Technology." Journal of Physics: Conference Series, 978(1).

Konglong Tang et al. (2013). " Design and Implementation of Push Notification System Based on the MQTT Protocol "

Amazon, 2023. Amazon Simple Notification Service. [Online] Available at: https://docs.aws.amazon.com/sns/latest/dg/welcome.html

Apple Inc., 2023. Registering your app with APNs [Online] Available at: https://developer.apple.com/documentation/usernotifications/registering_your_app_with_apns

Brüstel, Jonas. & Preuss, Thomas., 2012. A Universal Push Service for Mobile Devices. 2012 Sixth International Conference on Complex, Intelligent, and Software Intensive Systems.

Hickson, Ian. & et., a., 2014. HTML5: A Vocabulary and Associated APIs for HTML and XHTML. [Online] Available at: http://www.w3.org/TR/html5

Zhang, L., & Shen, X. (2013). Research and Development of Real-time Monitoring System Based on WebSocket Technology. International-Conference on Mechatronic Sciences, Electric Engineering and Computer/MEC.

Skvorc, D., Horvat, M. & Srbljic, S., 2014. Performance Evaluation of Websocket Protocol for Implemetation of Full-Duplex Web Streams. MIPRO.

Mozilla Corporation. 2022. API WebSocket (WebSockets). Diakses 29.3.2022. https://developer.mozilla.org/en-US/docs/Web/API/WebSock- ets_API

mqtt.org. 2022. MQTT: The Standard for IoT Messaging [Online] Available at: https://mqtt.org/

Yokotani, T. & Sasaki, Y. 2016. Comparison with HTTP and MQTT on required network resources for IoT.

Prasetyo, Hariyo. & dkk. 2023. Analisis Perbandingan Kinerja Protokol MQTT dan AMQP pada Pengiriman Pesan Peringatan dari Sensor NIDS berdasarkan Serangan Jaringan.

Enache, B. A., Banica, C. K., & Bogdan, A. G. (2023). Performance Analysis of MQTT Over Websocket for IoT Applications. The Scientific Bulletin of Electrical Engineering Faculty, 23(1), 46–49. https://doi.org/10.2478/sbeef-2023-0008

Yudianto, A., Sakti, E., Kom, S., Kom, M., & Amron, K. (2017). PENGEMBANGAN PUSH NOTIFICATION MENGGUNAKAN WEBSOCKET. In Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer (J-PTIIK (Vol. 1, Issue 1).

Budi, R., 2015. Mudah Belajar Python Untuk Aplikasi dan Web. Bandung: Informatika.

Naik, N. 2017. Choice of Effective Messaging Protocols for IoT Systems: MQTT, CoAP, AMQP and HTTP.

Tang, K., Wang, Y., Liu, H., Sheng, Y., Wang, X., & Wei, Z. (2013). Design and Implementation of Push Notification System Based on the MQTT Protocol. https://doi.org/10.2991/isca-13.2013.20

Soewito, B., Christian, Gunawan, F. E., Diana, & Gede Putra Kusuma, I. (2019). Websocket to support real time smart home applications. Procedia Computer Science, 157, 560–566. https://doi.org/10.1016/j.procs.2019.09.014

Mishra, B., & Kertesz, A. (2020). The use of MQTT in M2M and IoT systems: A survey. IEEE Access, 8, 201071–201086. https://doi.org/10.1109/ACCESS.2020.3035849

Tommy, L., Wahyuningsih, D., & Romadiana, P. (2020). Pengembangan Aplikasi Penerimaan Mahasiswa Baru Berbasis Android dengan Push Notification di STMIK Atma Luhur. Jurnal Sisfokom (Sistem Informasi Dan Komputer), 9(1), 108–121. https://doi.org/10.32736/sisfokom.v9i1.813

Guan, S., Hu, W., & Zhou, H. (n.d.). Real-Time Data Transmission Method Based on Websocket Protocol for Networked Control System Laboratory. https://www.powersim.whu.edu.cn/ncslab.

Łasocha, W. P., & Badurowicz, M. (2021). Comparison of WebSocket and HTTP protocol performance Porównanie wydajności protokołu WebSocket i HTTP. In JCSI (Vol. 19).

Ningtyas, D. F., & Setiyawati, N. (2021). Implementasi Flask Framework pada Pembangunan Aplikasi Purchasing Approval Request. Jurnal Janitra Informatika Dan Sistem Informasi, 1(1), 19–34. https://doi.org/10.25008/janitra.v1i1.120

Setyawan, S., & Susanto, A. (2018). Sistem Push Notification Life@BankJateng Sebagai Penunjang Layanan Pegawai PT. Bank Jawa Tengah Menggunakan Socket.IO Push Notification System Life@BankJateng to Support PT. Bank Jawa Tengah Using Socket.IO. Journal of Information System, 03.

Sameer Sadeq, A., Sleibi Al-rawi, S., Mahdi Jubair, A., & Hafizah Mohd Aman, A. (2019). A QOS APPROACH FOR INTERNET OFTHINGS (IOT) ENVIRONMENT USING MQTT PROTOCOL.

Yunisa, Fiona., & Suharijto. (2016). Push Notification System to Mobile Game Player Using Distributed Event-Based System Approach, d International Conference on Science in Information Technology (ICSITech).

Hu, Yangyang., & Chen, Weiqing. (2017). Research and Implementation of Campus Information Push System Based on WebSocket, International Conference on Intelligent Systems and Knowledge Engineering (ISKE)

Rahmatulloh, A., dkk. (2019). Performance Analysis of Data Transmission on WebSocket for Real-time Communication. https://ieeexplore.ieee.org/document/8898135

Downloads

Published

08-01-2024

How to Cite

[1]
F. P. . Eka Putra, F. Muslim, N. Hasanah, Holipah, R. Paradina, and R. Alim, “Analisis Komparasi Protokol Websocket dan MQTT Dalam Proses Push Notification”, jsisfotek, vol. 5, no. 4, pp. 63–72, Jan. 2024.

Issue

Section

Articles