RESTFUL API PERFORMANCE MODELING: REQUEST PROCESSING ALGORITHMS AND DATA ANALYSIS
DOI:
https://doi.org/10.32718/agroengineering2025.29.225-231Keywords:
RESTful API, web services, Node.js, Express.js, CRUD, request optimization, caching, pagination, filtering, batch requests, asynchronous processing, performanceAbstract
The text summarizes the positive and negative aspects of creating RESTful APIs in back-end development. It analyzes the current state of REST architecture usage in web technologies and examines modern approaches and tools for developing RESTful APIs, justifying their applicability. Popular frameworks and development environments, such as Express.js, Django REST Framework, and Spring Boot, which are widely used in both startups and large companies, are described. The study highlights key features such as request structuring, HTTP methods, routing standards, and server-side data handling. It emphasizes RESTful APIs for their ease of integration, scalability, and flexibility in client-server application development. The key principles of RESTful API design are outlined, including the use of the GET, POST, PUT, and DELETE methods, proper server response formatting, and standardization of resource paths. Some limitations of the REST approach are noted, such as challenges in handling a large number of resources and issues related to API versioning. The use of these tools and approaches improves the quality of server-side logic, ensures standardized data exchange, and reduces complexity in client-side integration. The application of RESTful APIs in modern web design through frameworks like Express.js, Django REST Framework, and Spring Boot is characterized. A practical example is provided of a small Node.js server using Express to manage a task list with basic CRUD operations. The focus is on optimizing REST requests through various strategies, including caching, pagination, filtering, batch requests, data compression, and asynchronous processing. A methodology for evaluating API performance on a Node.js/Express test server, using Prometheus and Grafana for monitoring, is described. Load testing with a stable request stream allowed for the assessment of the impact of individual optimization methods on throughput, latency, and data volume. Results indicate that asynchronous requests and batch operations yield the highest performance increases, while caching, pagination, filtering, and compression offer moderate improvements. It is emphasized that utilizing combined optimization methods significantly enhances speed, reduces response time and server load, and ensures stable operation of web services, even under conditions of high traffic intensity.
References
Amundsen, M. (2013). RESTful Web API Patterns and Practices Cookbook. Birmingham: Packt Publishing.
Arkhitekturni styli API. IT-kompas. (2024). Retrieved from: https://infdev.com.ua/docs/standards/api-architecture-styles/ (Accessed January 21, 2025)
Bayer, Т., & Polley, Т. (2025). The API Gateway Handbook: Your Practical Guide to API Gateway Setup, Security, and Operation. Leanpub. Retrieved from: https://leanpub.com/api-gateway (Accessed January 21, 2025)
Borodkina, I.L., & Borodkin, H.O. (2020). Web-tekhnolohii ta Web-dyzain: zastosuvannia movy HTML dlia stvorennia elektronnykh resursiv. Kyiv: Lira-K.
Buriachok, V. L., Hulak, H. M., & Tolubko, V.B. (2023). Informatsiinyi ta kiberprostory: problemy bezpeky, metody ta zasoby borotby. Mahnoliia.
Denysenko, A. Vstup do REST API – RESTful vebservisy. (2025). Retrieved from: https://robotdreams.cc/uk/blog/466-vstup-do-rest-api-restful-vebservisi (Accessed January 21, 2025)
Ed-douibi, H., Cánovas Izquierdo, J. L. & Cabot, J. (2018). Automatic Generation of Test Cases for REST APIs: A Specification-Based Approach, 2018 IEEE 22nd International Enterprise Distributed Object Computing Conference (EDOC), Stockholm, Sweden. DOI: 10.1109/EDOC.2018.00031.
Havrylenko, O. The System Design Cheat Sheet: API Styles - REST, GraphQL, WebSocket, Webhook, RPC/gRPC, SOAP. (2023). Retrieved from: https://hackernoon.com/the-system-design-cheat-sheet-api-styles-rest-graphql-websocket-webhook-rpcgrpc-soap (Accessed January 21, 2025)
Konstantinov, S. (2025). Mastering HTTP APIs & REST Architectural Style: From the Very Basics to the Full Professional Proficiency. Retrieved from: https://www.amazon.com/Mastering-HTTP-APIs-Architectural-Style-ebook/dp/B0DJHHHM14 (Accessed January 21, 2025).
Mabotha, E., Mabunda, N.E., & Ali, A. (2025). Exploring dynamic RESTful API implementation in IoT environments using Docker. Sci Rep 15, 34267. https://doi.org/10.1038/s41598-025-16460-0
Masse, M. (2009). REST API Design Rulebook. Sebastopol: O’Reilly Media.
Melnyk, R.A. (2018). Prohramuvannia veb-zastosuvan (front-end ta bek-end). Lviv: Lvivska politekhnika.
Mutiara, G.A., Periyadi, Alfarisi, M.R., Zain, M.A., Rijali, M.G., & Rochim, F.N. (2025). Design and implementation of a REST API-based client-server architecture for multi-sensor IoT monitoring. International Journal of Advanced Technology and Engineering Exploration, 12(124), 426-449.
Prayogi, A. A., Niswar, M., Indrabayu, I., & Rijal, M. (2020). Design and Implementation of REST API for Academic Information System. ResearchGate, 2020. Retrieved from: https://www.researchgate.net/publication/343164544_Design_and_Implementation_of_REST_API_for_Academic_Information_System (Accessed January 21, 2025).
Richardson, L., & Ruby, S. (2007). RESTful Web Services. Sebastopol: O'Reilly Media Inc. Retrieved from: https://www.oreilly.com/library/view/restful-web-services/9780596529260/ (Accessed January 21, 2025).
Rodríguez, C., Báez González, M., Daniel, F., Casati, F., Trabucco, J., Canali, L., & Percannella, G. (2016). REST APIs: A Large-Scale Analysis of Compliance with Principles and Best Practices. Web Engineering. 16th International Conference, ICWE 2016, Lugano, Switzerland, Springer International Publishing, 21-39. DOI: 10.1007/978-3-319-38791-8_2
Skalozub, V.V., Horiachkin, V.M., & Murashov, O.V. (2023). Reliatsiino-separabelni modeli protsesiv monitorynhu pry pereminnykh i nechitkykh intervalakh sposterezhen. Systemni tekhnolohii. Rehionalnyi mizhvuzivskyi zbirnyk naukovykh prats, 4 (147), 3-19. DOI: 10.34185/1562-9945-4-147-2023-01
Telezhenko, D. O. (2025). Metody ta modeli syntezu arkhitektury virtualnykh rozpodilenykh kompiuternykh system: dys. na zdobuttia stupenia doktora filosofii za spetsialnistiu 122 Kompiuterni nauky. Kharkiv.
Telezhenko, D.O. (2024). Modyfikatsiia metodu vidnovlennia arkhitektury virtualnykh kompiuternykh system pislia zboiv, 274-283. DOI: 10.52058/48-2024
Yurchak, I.Yu. (2024). Tekhnolohii veb-rozrobky ta dyzainu: Konspekt lektsii dystsypliny “Tekhnolohii vebrozrobky ta dyzainu” dlia studentiv pershoho (bakalavrskoho) rivnia vyshchoi osvity spetsialnosti 122 “Kompiuterna nauka” (Proektuvannia i prohramuvannia intelektualnykh system.
