New Publication: Analysing the Performance and Costs of Reactive Programming Libraries in Java

Julien Ponge
2 min readOct 17, 2021

I presented today a new publication called Analysing the Performance and Costs of Reactive Programming Libraries in Java at the 8th ACM SIGPLAN International Workshop on Reactive and Event-Based Languages and Systems (REBLS) (a workshop of Splash 2021).

This paper was co-authored with Arthur Navarro, Clément Escoffier and Frédéric Le Mouël.

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.

Reference

Julien Ponge, Arthur Navarro, Clément Escoffier, and Frédéric Le Mouël. 2021. Analysing the Performance and Costs of Reactive Programming Libraries in Java. In Proceedings of the 8th ACM SIGPLAN International Workshop on Reactive and Event-Based Languages and Systems (REBLS ‘21), October 18, 2021, Chicago, IL, USA. ACM, New York, NY, USA, 10 pages. DOI PDF

Excerpts

I/O Bound Experimental Results

Code bases compared

Takeaways

Originally published at https://julien.ponge.org on October 17, 2021.

--

--

Julien Ponge

Computer scientist. Hackademic. Does more with less.