DOI: 10.17587/prin.16.412-420
Perfomant API for Bayesian Networks in Java
K. E. Grigorev, Master's Student, k.e.grigorev@gmail.com,
A. N. Poletaykin, Associate Professor, alex.poletaykin@gmail.com,
Kuban State University, Krasondar, 350040, Russian Federation
Corresponding author: Konstantin E. Grigorev, Master's Student, Kuban State University, Krasondar, 350040, Russian Federation E-mail: k.e.grigorev@gmail.com
Received on February 27, 2025
Accepted on May 20, 2025
This study presents the implementation of a REST API for predicting emergency situations at cellular network base stations using Bayesian networks. Unlike most studies limited to theoretical models, this work offers an engineering solution implemented in Java using the jSMILE library and the Spring Boot framework. The choice of Java is motivated by its mature and extensive ecosystem, which emphasizes security, reduced development time, and support for microservice architecture. This approach eliminates a common bottleneck in model implementation—significant resource consumption during Bayesian network initialization—which negatively affects request processing time. To address this issue, the Object Pool design pattern was introduced, significantly improving system performance. The application of the Object Pool pattern to a Bayesian network is done for the first time, representing the scientific novelty of this research. Load testing conducted using Locust allowed for the evaluation of system resilience under load, response time measurements, and monitoring the number of pool objects used at different load levels.
Keywords: API, Bayesian model, jSMILE, emergency situation prediction, telecommunication systems, Spring Boot framework, Object Pool pattern, system performance
pp. 412—420
For citation:
Grigorev K. E., Poletaykin A. N. Perfomant API for Bayesian Networks in Java, Programmnaya Ingeneria, 2025, vol. 16, no. 8, pp. 412—420. DOI: 10.17587/prin.16.412-420. (in Russian).
References:
- Buntsev I. A., Kanev V. S. System risk management in telecommunications (problem status, methods, models, implementations), Bulletin of SibSUTIS, 2009, no. 1 (5), pp. 26—52 (in Russian).
- Kanev V. S., Grigoriev K. E., Poletaikin A. N. Bayesian Model for Assessing Risks of Emergency Situations at Cellular Network Base Stations, 2024 IEEE 3rd International Conference PIERE, Novosibirsk, Russian Federation, 2024, pp. 890—894. DOI: 10.1109/PIERE62470.2024.10805035 (in Russian).
- Mark B. I. REpresentational State Transfer: Introduction to the Technology, Science and Education Issues, 2024, no. 1 (173), pp. 4—21 (in Russian).
- Rezedinova E. Yu., Kyrkunov P. N., Sergeev A. V. Selecting a Service-Oriented Architecture for Creating a City Improvement Service, SAEC, 2023, pp. 168—177. DOI:10.18720/SPBPU/2/id23-473 (in Russian).
- Galiguzova E. V., Illarionova Yu. E. GraphQL Query Language as a Replacement for REST API: Comparison of GraphQL and REST API, Symbol of Science, 2023, no. 1—2, pp. 9—11 (in Russian).
- Sakovich V. V., Kozhomberdieva G. I., Burakov D. P. Using Spring Projects Frameworks for Web Application Development on the Java Platform, Intelligent Technologies in Transport, 2023, no. 2, pp. 58—66. DOI: 10.24412/2413-2527-2023-234-58-66 (in Russian).
- Shershen K. V. In-Demand Back-End Technologies for Software Product Development, Universum: Technical Sciences, 2024, no. 1 (118), pp. 34—41 (in Russian).