Extending the Migration from Asynchronous to Reactive Programming in Java: A Performance Analysis of Caching, CPU-Bound, and Blocking Scenarios
Open Access
- 21 December 2025
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 16 (1) , 90
Abstract
Modern distributed systems increasingly rely on reactive programming to meet the demands of high throughput and low latency under extreme concurrency. While the theoretical advantages of non-blocking I/O are well-established, empirical understanding of its behavior across heterogeneous enterprise workloads remains fragmented. This study presents a unified architectural evaluation of asynchronous (thread-per-request) and reactive (event-loop) paradigms within a functionally equivalent Java microservice environment. Unlike prior studies that isolate specific workloads, this research benchmarks the architectural crossover points across three distinct operational categories: distributed caching, CPU-bound processing, and blocking I/O, under loads up to 1000 concurrent users. The results quantify specific boundary conditions: the reactive model demonstrates superior elasticity in I/O-bound caching scenarios, achieving 75% higher throughput and 68% lower memory footprint. However, this advantage is strictly workload-dependent; both paradigms converge to an identical CPU wall at processor saturation, where the reactive model incurs a quantifiable latency penalty due to event-loop contention. Furthermore, under blocking conditions, the reactive model’s memory efficiency (reducing footprint by ~50%) provides resilience against Out-Of-Memory (OOM) failures, even as throughput gains plateau. These findings move beyond generic performance comparisons to provide precise, data-driven guidelines for hybrid architectural adoption in complex distributed systems.Keywords
This publication has 32 references indexed in Scilit:
- Blockchain-Assisted Conditional Anonymous Authentication and Adaptive Tree-Based Group Key Agreement for VANETsIEEE Transactions on Dependable and Secure Computing, 2025
- PCJ Java library as a solution to integrate HPC, Big Data and Artificial Intelligence workloadsJournal of Big Data, 2021
- Satisfying Increasing Performance Requirements With Caching at the Application LevelIEEE Software, 2020
- InvaliDBProceedings of the VLDB Endowment, 2020
- On the Design of Conditional Privacy Preserving Batch Verification-Based Authentication Scheme for Internet of Vehicles DeploymentIEEE Transactions on Vehicular Technology, 2020
- Reactive caching for composed services: polling at the speed of pushProceedings of the ACM on Programming Languages, 2018
- Docker Container Scheduler for I/O Intensive Applications Running on NVMe SSDsIEEE Transactions on Multi-Scale Computing Systems, 2018
- Understanding Application-Level Caching in Web ApplicationsACM Computing Surveys, 2017
- Multithreading in Java: Performance and Scalability on Multicore SystemsIEEE Transactions on Computers, 2010
- A self-adaptable scheduler for synchronizing transactions in dynamically configurable environmentsData & Knowledge Engineering, 2008