Java / Quarkus Interview questions
What is the Mutiny library used for in Quarkus?
Mutiny is Quarkus's reactive programming library, providing the Uni and Multi types used to represent asynchronous operations — a single eventual result, or a stream of multiple results, respectively — as an alternative to writing blocking, thread-per-request code.
| Type | Represents |
| Uni<T> | An asynchronous computation that eventually emits one item or a failure |
| Multi<T> | An asynchronous stream that can emit zero, one, or many items over time |
Quarkus chose to build its own reactive API, rather than only exposing raw RxJava or Project Reactor types, specifically to keep the API approachable — method names like onItem() and onFailure() read close to plain English — while still being fully interoperable with those other reactive libraries when needed.
Mutiny types show up throughout reactive Quarkus code: reactive REST endpoints can return a Uni<Response>, reactive database clients return Uni/Multi results, and reactive messaging channels are typically typed as Multi streams of incoming messages.
More Related questions...
