Comparative analysis of reactive programming and Java virtual threads
Abstract
This study presents a comparative analysis of two concurrency paradigms in modern Java applications: reactive programming and Java virtual threads. Traditional operating system threads consume excessive resources under high concurrency, which has driven the adoption of non-blocking, event-driven frameworks such as Spring WebFlux, as well as lightweight JVM-managed virtual threads introduced as part of Project Loom in Java 21. While prior research highlights the benefits of both approaches, direct empirical comparisons under controlled conditions remain limited. To address this gap, this study evaluates the performance, scalability, and resource utilization of both paradigms through controlled experiments conducted on the Google Cloud Platform. The analysis investigates their behaviour under varying levels of concurrent load and examines the impact of different CPU and memory configurations on system efficiency. The results aim to support developers and architects in selecting appropriate concurrency models for Java applications.
Fields of Study & Subjects
Logic
programming
and type systems
Software System Performance and Reliability
Advanced Software Engineering Methodologies
Publication details
- Journal / source
- Journal of Computer Sciences Institute
- Publisher
- Politechnika Lubelska
- Volume
- 39
- Pages
- 154–160
- Publication date
- 30 June 2026
- Language
- EN