A Comparative Performance Evaluation of Real-Time Communication Architectures for ESP32-Based Chatbot Systems

Ridwan Sanjaya, Christin Wibhowo

Abstract


ESP32-based devices are widely used as a low-cost and resource-constrained platform for Internet of Things (IoT) applications that require responsive communication. However, real-time chatbot systems need higher requirements regarding delays that can reduce the perception of responsiveness, conversation continuity, and user trust. This study evaluates the use of WebSocket, Hybrid MQTT-WebSocket, Hybrid MQTT-Server-Sent Events (SSE), and Cloudflare as four real-time communication architectures for an ESP32-based chatbot system. This study used a systematic literature review on ESP32 communication models and experimental performance evaluation using Sovi Lau 2.0 logs. This dataset consists of 400 communication logs from the performance of the four architectures. The four metrics analyzed were latency, throughput, packet loss, and power consumption. One-way ANOVA was used to compare the architectures, followed by Tukey's HSD for significant metrics. The results show that Cloudflare has the lowest average latency and the highest throughput, while Hybrid MQTT-SSE produces the lowest packet loss and the lowest power consumption. The ANOVA test showed that of the variables tested, only latency had a significant difference between the architectures. The Tukey HSD test confirmed that the Cloudflare architecture had the significantly lowest latency.


Keywords


Cloudflare; esp32; mqtt; server-sent events; websocket

Full Text:

PDF

References


D. Hercog, T. Lerher, M. Truntič, and O. Težak, “Design and Implementation of ESP32-Based IoT Devices,” Sensors, vol. 23, no. 15, p. 6739, Jul. 2023, doi: 10.3390/s23156739.

S. Bhaganagare, S. Chavan, S. Gavali, and V. Godase, “Voice Controlled Home Automation Using ESP32 and IoT-Based Cloud Integration,” Int. J. Adv. Res. Sci. Commun. Technol., 2025, doi: 10.48175/ijarsct-29478.

M. Gladwin, R. Preeda, S. Dayana, G. Aarthi, and V. Fathima, “Voice Controlled Application using ESP32,” J. Electr. Eng. Autom., 2025, doi: 10.36548/jeea.2025.3.002.

B. A, T. Natuva, M. Shaik, M. K. Thippirisetti, V. K. Atte, and S. M, “Latency and Throughput Benchmarking of IoT Protocols on ESP32 Microcontrollers,” in 2025 IEEE 6th Global Conference for Advancement in Technology (GCAT), 2025, pp. 1–6. doi: 10.1109/gcat66372.2025.11368454.

P. Chouragadey, L. Kawadkar, and B. Rathore, “Comparative Analysis of Communication Protocols: MQTT, HTTP, TCP, UDP, and Websocket,” in 2025 International Conference on Electrical, Communication, and Computing Technologies (iCONECCT), 2025, pp. 1–6. doi: 10.1109/iconecct67014.2025.11469821.

D. N. Bestari and A. Wibowo, “IoT Based Real-Time Weather Monitoring System Using Telegram Bot and Thingsboard Platform,” Int. J. Interact. Mob. Technol., vol. 17, pp. 4–19, 2023, doi: 10.3991/ijim.v17i06.34129.

D. R. Tisna, T. Maharani, and K. Nugroho, “Pemanfaatan Chatbot Telegram untuk Monitoring dan Kontrol Kualitas Air Menggunakan Esp32,” JIPI (Jurnal Ilm. Penelit. dan Pembelajaran Inform., 2024, doi: 10.29100/jipi.v9i3.5329.

N. Mitrovic, M. Djordjevic, S. Veljkovic, and D. Dankovic, “Implementation and testing of WebSocket protocol in ESP32 based IoT systems,” Facta Univ. - Ser. Electron. Energ., vol. 36, no. 2, pp. 267–284, 2023, doi: 10.2298/FUEE2302267M.

G. Violettas and L. Mamatas, “TriCloudEdge: A multi-layer Cloud Continuum,” ArXiv, vol. abs/2602.02121, 2026, doi: 10.48550/arxiv.2602.02121.

V. Anooja, M. Khrisnakumar, S. Sangeetha, and W. Rajaian, “Enhancing Intelligent Connectivity Through Embedded IoT Systems for Real-Time Applications,” ICTACT J. Microelectron., 2025, doi: 10.21917/ijme.2025.0348.

T. S. Kartha et al., “Evaluating the Suitability of MQTT and HTTP for ESP32-Based IoT Architectures,” in 2025 International Conference on Robotics and Mechatronics (ICRM), 2025, pp. 1–7. doi: 10.1109/icrm66809.2025.11349088.

E. De Franceschi Vieira and T. A. Rizzetti, “Performance Evaluation of an ESPresense/MQTT Architecture for Real-Time Locating System,” An. da XXII Esc. Reg. Redes Comput. (ERRC 2025), 2025, doi: 10.5753/errc.2025.17688.

R. Sanjaya, A. K. Pamudji, and E. Vania, “Comparative Analysis and Practical Implementation of loT Communication Using HTTP/2 and MQTT,” in 2024 7th International Conference on Green Technology and Sustainable Development (GTSD), Ho Chi Minh City, Vietnam: IEEE, Jul. 2024, pp. 221–226. doi: 10.1109/GTSD62346.2024.10674902.

R. Sanjaya, A. K. Pamudji, and C. Wibhowo, “Comparative Analysis of ESP8266, ESP32, and ESP32-S3 for Smart Speaker-Based Support in Borderline Personality Disorder,” in 2025 IEEE 9th International Conference on Software Engineering & Computer Systems (ICSECS), 2025, pp. 132–137. doi: 10.1109/icsecs65227.2025.11278945.

M. Tauseef, C. Krishna, C. M, K. Bhagyashree, and K. S, “MediBot: Edge-Enabled AI Healthcare Chatbot with IoT-Based Monitoring and Smart Assistance,” in 2026 International Conference on Intelligent and Innovative Technologies in Computing, Electrical and Electronics (IITCEE), 2026, pp. 1–8. doi: 10.1109/iitcee67948.2026.11394057.

W. Yu et al., “A Survey on the Edge Computing for the Internet of Things,” IEEE Access, vol. 6, pp. 6900–6919, 2017, doi: 10.1109/access.2017.2778504.

D. A. Noordin, N. Z. Nadzri, and R. F. R. Suleiman, “Integration of IoT Platform Environment for Web Server and Global Connectivity Based on ESP32,” in 2025 IEEE 6th International Conference in Robotics and Manufacturing Automation (ROMA), 2025, pp. 339–344. doi: 10.1109/roma66616.2025.11155577.

J. J. L. Escobar, R. Díaz-Redondo, and F. Gil-Castiñeira, “Unleashing the power of decentralized serverless IoT dataflow architecture for the Cloud-to-Edge Continuum: a performance comparison,” Ann. Telecommun., pp. 1–14, 2024, doi: 10.1007/s12243-023-01009-x.




DOI: https://doi.org/10.24167/sisforma.v13i1.15565

Refbacks

  • There are currently no refbacks.




SISFORMA: Journal of Information Systems | p-ISSN: 2355-8253 | e-ISSN: 2442-7888 | View My Stats

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.