Mutiny!Intuitive Event-Driven Reactive Programming Library for Java
Uni<String> request = (...) Uni<String> uni = request .ifNoItem().after(ofSecond(1)) .fail(() -> new Exception("💥")) .onFailure().recoverWithItem(fail -> "📦") .subscribe() .with(item -> log("👍 " + item))
Mutiny places events at the core of its design. With Mutiny, you observe events, react to them, and create elegant and readable processing pipelines. A PhD in functional programming is not required.
Even with smart code completion, classes with hundred of methods are confusing. Mutiny provides a navigable and explicit API driving you towards the operator you need.
Mutiny is the perfect companion to tame the asynchronous nature of applications with non-blocking I/O. Declaratively compose operations, transform data, enforce progress, recover from failures and more.
Quarkus and Vert.x native
Mutiny is integrated in Quarkus where every reactive API uses Mutiny, and Eclipse Vert.x clients are made available using Mutiny bindings. Mutiny is however an independent library that can ultimately be used in any Java application.
Made for an asynchronous world
Mutiny can be used in any asynchronous application such as event-driven microservices, message-based applications, network utilities, data stream processing, and of course... reactive applications!
Reactive Converters Built-In
Mutiny is based on the Reactive Streams specification, and so it can be integrated with any other reactive programming library. In addition, it proposes converters to interact with other popular libraries.