Today we’ll be talking about reactive programming, Quarkus and Mutiny with our experts, Clement Escoffier and Julien Ponge, both Principal Software Engineers at Red Hat.
Why use reactive programming
Reactive programming differs from the “traditional” imperative paradigm. Reactive is a programming approach that centers on events (and reacting to them!). It helps build robust, efficient, concurrent applications and systems, and it lets you handle more load while using resources more efficiently. As Clement points out, reactive also takes a different approach to failures. “Failures are inevitable. So we need to embrace them and be able to handle them gracefully.” He says.
So, why go reactive? Clement sums it up admirably. “With reactive, we are trying to build more responsive, efficient, robust, distributed systems. It’s about doing more with less.”
Mutiny simplifies the development of reactive applications
Mutiny is a new reactive programming library built to bypass common issues with reactive programming. It is integrated — but not bound — into Quarkus, a commonly used framework for building reactive applications. Mutiny helps developers by being:
Julien adds that another of Mutiny’s strengths is that it’s built based on real-world scenarios. “We asked questions and got lots of feedback from real organizations on how Mutiny is going to be used.”
Clement sums it up. “With Mutiny, what we really wanted to tackle is a better user experience, an effective way to write non-blocking code, and make composing asynchronous operations easy and understandable.”
Get started with reactive programming
Clement and Julien both recommend the Get Started Guides for Quarkus and Mutiny. Julien says, “The guides help explain the concepts and contain repositories you can follow along with.” Clement adds a caveat; “Don’t write reactive just to write it; only do it if you have a need.”
But if you do need it, “For reactive programming, Quarkus and Mutiny are complete ecosystems that have everything you need.” Clement says.
Get started with Quarkus on Platform.sh.
Platform.sh is a robust, reliable hosting platform that gives development teams the tools to build and scale applications efficiently. Whether you run one or one thousand websites, you can focus on creating features and functionality with your favorite tech stack.