Design and implementation of a REST API-based client-server architecture for multi-sensor IoT monitoring
Giva Andriana Mutiara1, Periyadi1, Muhammad Rizqy Alfarisi1, Muhammad Aulia Rifqi Zain1, Muhammad Ghifar Rijali1 and Fathurrohman Nur Rochim1
Corresponding Author : Giva Andriana Mutiara
Recieved : 24-October-2024; Revised : 20-March-2025; Accepted : 22-March-2025
Abstract
This paper discusses the design and implementation of a representational state transfer (REST) application programming interface (API)-based client-server architecture for an internet of things (IoT) monitoring application with multiple sensors. The research aims to enable real-time monitoring of an integrated system consisting of more than ten sensors, utilizing ESP-32 and long-range (LoRa) communication. The monitoring system focuses on developing a web-based interface that allows remote access to real-time data changes, without detailing sensor functionality or energy consumption. The system employs a REST API for data transmission. Sensor data is collected by the ESP-32, transmitted over a long-range wide-area network (LoRaWAN), processed by the LoRa receiver, and then relayed via Wi-Fi to the API. The architecture follows an N-layer design, facilitating client-server communication, database synchronization, and data provisioning for the web interface. Performance testing was conducted on two nodes, each containing multiple sensors, across various scenarios to evaluate system efficiency, load capacity, security, and dashboard functionality. Results show that the API response time for data retrieval from the two nodes ranged between 200 and 400 milliseconds. System performance begins to degrade beyond 1,500 users, with an observed error rate of 1.72% for node-1 and 0.9% for node-2. Security tests confirm the system’s resistance to various security threats. Dashboard monitoring results indicate that data can be displayed with a latency of less than one second.
Keywords
REST API, Internet of things (IoT), Client-server architecture, Real-time monitoring, LoRa communication, Multi-sensor system.
Cite this article
Mutiara GA, Periyadi, Alfarisi MR, Zain MAR, Rijali MG, Rochim FN. Design and implementation of a REST API-based client-server architecture for multi-sensor IoT monitoring. International Journal of Advanced Technology and Engineering Exploration. 2025;12(124):426-449. DOI : 10.19101/IJATEE.2024.111101934
