Devoxx Morocco 2025
Deep Dive
Concurrency Crossroads: Choosing between Reactive Programming and Virtual Threads in Quarkus
Abstract
Reactive programming has been the way to go for extra performance and concurrent programming, now we also have Virtual Threads (Project Loom). Which one should we choose? Can we leverage both? What's the best approach to write high-performance non-blocking code in our application? In this talk we'll explain the background behind both paradigms and go over the details together. We will cover the advantages and disadvantages of both paradigms using real-world examples in Quarkus. Furthermore, we will tell you the gotchas so you don't have to discover them yourself and we will also look ahead at what's coming next in future Java versions. We will aim to make this talk as simple as possible and show real code combined with live coding.