Analysing the performance and costs of reactive programming libraries in Java
Open Access
- 17 October 2021
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 51-60
Abstract
Modern services running in cloud and edge environments need to be resource-efficient to increase deployment density and reduce operating costs. Asynchronous I/O combined with asynchronous programming provides a solid technical foundation to reach these goals. Reactive programming and reactive streams are gaining traction in the Java ecosystem. However, reactive streams implementations tend to be complex to work with and maintain. This paper discusses the performance of the three major reactive streams compliant libraries used in Java applications: RxJava, Project Reactor, and SmallRye Mutiny. As we will show, advanced optimization techniques such as operator fusion do not yield better performance on realistic I/O-bound workloads, and they significantly increase development and maintenance costs.Keywords
This publication has 8 references indexed in Scilit:
- Debugging of RxJS-based applications2020
- Initialize once, start fast: application initialization at build timeProceedings of the ACM on Programming Languages, 2019
- Scalability and Resilience in Practice: Current Trends and Opportunities2019
- Renaissance: benchmarking suite for parallel applications on the JVM2019
- Play2: A New Era of Web Application DevelopmentIEEE Internet Computing, 2012
- Your mouse is a databaseCommunications of the ACM, 2012
- Cloud computingCommunications of the ACM, 2008
- Cyclomatic complexity density and software maintenance productivityIEEE Transactions on Software Engineering, 1991