Examination of the performance and scalability of a web application in a reactive and imperative approach using the Spring Framework

Main Article Content

DOI

Karol Lis

karol.lis@pollub.edu.pl

Jakub Smołka

jakub.smolka@pollub.pl

https://orcid.org/0000-0002-8350-2537

Abstract

The purpose of this paper was to test the performance and scalability of a web application written in reactive and imperative approaches using the Spring Framework, in order to understand the differences between these approaches and choose the technology that best meets the requirements and provides optimal performance. Two test applications were compared in terms of query processing times and CPU/RAM usage. The effect of Api Gateway microservices on application performance was analyzed. The tests showed that the reactive application processed I/O operations faster, used less RAM but more CPU. The imperative approach was faster for transactional operations performed sequentially. The reactive variant reacted with less latency to the presence of Api Gateway than the imperative approach.

Keywords:

spring boot, reactive programming, imperative programming, application performance

References

Article Details

Lis, K., & Smołka, J. (2024). Examination of the performance and scalability of a web application in a reactive and imperative approach using the Spring Framework. Journal of Computer Sciences Institute, 32, 210–216. https://doi.org/10.35784/jcsi.6291