Engineering and Technology
| Open Access | Designing SLA-Aware Reactive Apis In Financial Microservices: A Comparative Analysis Of Spring Webflux, Traditional Blocking Models, And Virtual Threads
Armin Keller , Department of Computer Science, University of Helsinki, Helsinki, FinlandAbstract
Financial institutions increasingly expose mission-critical services through APIs that must simultaneously satisfy strict service-level agreements (SLAs), withstand bursty workloads, and handle heterogeneous traffic from retail clients, institutional partners, and internal analytics engines. Traditional thread-per-request architectures in Java-based stacks, such as Spring MVC, struggle to combine high concurrency with predictable latency under such conditions, leading to renewed interest in reactive programming models such as Spring WebFlux and competing concurrency technologies like Java virtual threads (Thönes, 2015; Filichkin, 2018; Spring WebFlux Documentation, 2023).
Objective:
Building on recent work on priority-aware SLA-tiered APIs for financial services (Priority-Aware Reactive APIs, 2025), this article develops a comprehensive conceptual framework for designing SLA-aware reactive APIs using Spring WebFlux. The study integrates evidence from comparative performance research on reactive versus imperative models, evaluations of WebFlux in database-centric scenarios, and emerging analyses of virtual threads in Spring-based systems (Dakowitz, 2018; Iwanowski & Kozieł, 2022; Dahlin, 2020; Royal Institute of Technology (KTH), 2023; Nordlund & Nordström, 2023; Sukhambekova, 2025).
Methods:
A qualitative, synthesis-oriented methodology is employed. First, a structured narrative review consolidates findings from books, theses, scientific articles, and technical documentation on Spring WebFlux, Project Reactor, reactive programming concepts, and concurrency models in Java microservices (Reddy, 2018; Nurkiewicz & Christensen, 2016; Sharma, 2018; Mednikov, 2021; Srivastava, 2024; Deinum & Cosmina, 2021; Li & Sharma, 2020). Second, these insights are organized into an analytical comparison of three concurrency strategies: blocking MVC-style controllers, fully reactive WebFlux handlers, and Spring-based virtual thread configurations. Third, the paper synthesizes a detailed architectural blueprint for SLA-tiered priority-aware APIs on top of WebFlux, specifically tailored for financial services.
Results:
The synthesis shows that reactive WebFlux is particularly advantageous in latency-sensitive, I/O-bound, high-concurrency scenarios—common in risk checks, portfolio queries, and payment authorization flows—when paired with careful backpressure management, non-blocking persistence, and disciplined operator usage (Spring WebFlux Documentation, 2023; Project Reactor, 2023; Iwanowski & Kozieł, 2022). Priority-aware scheduling at the reactive layer allows differentiated handling of Gold, Silver, and Bronze tiers without resorting solely to coarse-grained infrastructure scaling (Priority-Aware Reactive APIs, 2025). However, empirical work on virtual threads suggests that for CPU-heavy or database-bound flows with moderate concurrency, virtual-thread-based Spring MVC can provide competitive or superior simplicity–performance trade-offs (Royal Institute of Technology (KTH), 2023; Nordlund & Nordström, 2023; Dahlin, 2020; Filichkin, 2018).
Conclusion:
The article argues that SLA-aware design in financial APIs should not default blindly to reactive programming but should instead adopt a portfolio approach to concurrency. Spring WebFlux is best positioned for highly concurrent, I/O-centric, SLA-differentiated traffic, especially when backed by reactive data access and carefully tuned schedulers, while virtual-thread-based MVC remains compelling for simpler services and teams with limited reactive expertise. The proposed conceptual framework offers practical guidance to architects on when and how to deploy WebFlux for priority-aware financial APIs and identifies future research needs in multi-dimensional benchmarking, hybrid models, and automated SLA policy enforcement.
Keywords
Spring WebFlux, reactive programming, virtual threads
References
Priority-Aware Reactive APIs: Leveraging Spring WebFlux for SLA-Tiered Traffic in Financial Services. (2025). European Journal of Electrical Engineering and Computer Science, 9(5), 31–40. https://doi.org/10.24018/ejece.2025.9.5.743
C. Deinum, & I. Cosmina. (2021). Building Reactive Applications with Spring WebFlux. In Spring in Action (5th ed., ch. 10). Manning.
K. Dahlin. (2020). An evaluation of Spring WebFlux with focus on built in SQL features (Master’s thesis). Mid Sweden University.
P. Dakowitz. (2018). Comparing reactive and conventional programming of Java based microservices in containerized environments (Master’s thesis). HAW Hamburg.
A. Filichkin. (2018, May). Spring Boot Performance Battle: Blocking vs Non-Blocking vs Reactive. Medium. https://filia-aleks.medium.com/microservice-performance-battle-spring-mvc-vs-webflux-80d39fd81bf0
S. Iwanowski, & G. Kozieł. (2022). Comparative analysis of reactive and imperative approach in Java web application development. Journal of Computer Sciences Institute, 24, 242–249. https://doi.org/10.35784/jcsi.2999
Q. Li, & R. Sharma. (2020). Review on Spring Boot and Spring WebFlux for Reactive Web Development. ResearchGate. https://www.researchgate.net/publication/341151097
Y. Mednikov. (2021). Friendly WebFlux: A Practical Guide to Reactive Programming with Spring WebFlux. Independent.
T. Nurkiewicz, & B. Christensen. (2016). Reactive Programming with RxJava: Creating asynchronous, event based applications (1st ed.). O’Reilly Media.
J. B. Ottinger, & A. Lombardi. (2017). Spring Boot. In Beginning Spring 5. Apress. https://doi.org/10.1007/978-1-4842-4486-9_7
Project Reactor. (2023). Project Reactor webpage. https://projectreactor.io/
K. Siva Prasad Reddy. (2018). Reactive Programming Using Spring WebFlux. In Beginning Spring Boot 2 (pp. 159–182). Apress. https://doi.org/10.1007/978-1-4842-2931-6_12
Royal Institute of Technology (KTH). (2023). Comparing Virtual Threads and Reactive WebFlux in Spring (M.S. thesis). Stockholm, Sweden.
R. Sharma. (2018). Hands-On Reactive Programming with Reactor: Build Reactive and Scalable Microservices Using the Reactor Framework. Packt.
M. Srivastava. (2024). Mastering Spring Reactive Programming for High-Performance Web Apps. Notion Press.
Spring WebFlux Documentation. (2023). In Spring Framework Reference Documentation. https://docs.spring.io/springframework/reference/web/webflux.html
spring.io/reactive. (2023). Reactive Spring. https://spring.io/reactive
A. Sukhambekova. (2025). Comparison of Spring WebFlux and Spring MVC. Modern Scientific Method, 9.
J. Thönes. (2015). Microservices. IEEE Software, 32(1), 113–116.
Kotlin Coroutines Documentation. (n.d.). Coroutines overview. https://kotlinlang.org/docs/reference/coroutinesoverview.html
A. Nordlund, & N. Nordström. (2023). Comparing Virtual Threads and Reactive WebFlux in Spring. diva-portal.org. https://www.diva-portal.org/smash/get/diva2%3A1763111/FULLTEXT01.pdf
Download and View Statistics
Copyright License
Copyright (c) 2025 Armin Keller

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors retain the copyright of their manuscripts, and all Open Access articles are disseminated under the terms of the Creative Commons Attribution License 4.0 (CC-BY), which licenses unrestricted use, distribution, and reproduction in any medium, provided that the original work is appropriately cited. The use of general descriptive names, trade names, trademarks, and so forth in this publication, even if not specifically identified, does not imply that these names are not protected by the relevant laws and regulations.

