Data persistence in Quarkus
Data persistence is the means by which your application will be able to store and retrieve its data from one execution to the next. This means that any data that was input will survive after the process that created it has ended. Quarkus has a growing list of extensions to support data persistence. In Chapter 1, Bootstrapping the Project, we learned about Quarkus’ support for both the imperative and reactive paradigms. Since the reactive approach will bring considerable performance improvements to our application, in this book, we’re going to use Hibernate Reactive, a reactive persistence API, in its simplified Panache version, to provide data persistence to our application. We are also going to use a PostgreSQL database since there is a reactive client extension for Quarkus too. Let us now see which dependencies we should add to the project.
Adding dependencies to our project
We will start by adding all of the required dependencies for...