Migrating from Developing Asynchronous Multi-Threading Programs to Reactive Programs in Java
Open Access
- 23 December 2024
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 14 (24) , 12062
Abstract
Modern software application development imposes standards regarding high performance, scalability, and minimal system latency. Multi-threading asynchronous programming is one of the standard solutions proposed by the industry for achieving such objectives. However, the recent introduction of the reactive programming interface in Java presents a potential alternative approach for addressing such challenges, promising performance improvements while minimizing resource utilization. The research examines the migration process from the asynchronous paradigm to the reactive paradigm, highlighting the implications, benefits, and challenges resulting from this transition. To this end, the architecture, technologies, and design of a support application are presented, outlining the practical aspects of this experimental process while closely monitoring the phased migration. The results are examined in terms of functional equivalence, testing, and comparative analysis of response times, resource utilization, and throughput, as well as the cases where the reactive paradigm proves to be a solution worth considering. Across multiple scenarios, the reactive paradigm demonstrated advantages such as up to 12% reduction in memory usage, 56% faster 90th percentile response times, and a 33% increase in throughput under high-concurrency conditions. However, the results also reveal cases, such as data-intensive scenarios, where asynchronous programming outperforms reactive approaches. Additionally, possible directions for further research and development are presented. This paper not only investigates the design and implementation process but also sets a foundation for future research and innovation in dependable systems, collaborative technologies, sustainable solutions, and distributed system architecture.Keywords
All Related Versions
This publication has 24 references indexed in Scilit:
- Modeling and verification of software evolution using bigraphical reactive systemCluster Computing, 2024
- An HTTP REST API for Tape-backed StorageEPJ Web of Conferences, 2024
- On the impact of event-driven architecture on performance: An exploratory studyFuture Generation Computer Systems, 2023
- Continuous Integration (CI) and Continuous Delivery (CD)2023
- Detection of Concurrency Errors in Multithreaded Applications Based on Static Source Code AnalysisIEEE Access, 2021
- R2DBC Revealed2021
- Automated Refactoring to Reactive Programming2019
- Rapid Java Persistence and Microservices2019
- Reactive Streams in Java2019
- Synthesis of Asynchronous Reactive Programs from Temporal Specifications2018