Summary
Hibernate Reactive and Panache make our lives much easier when we need to handle databases using Quarkus in a reactive way. We learned that Hibernate Reactive is built on top of the traditional Hibernate implementation but with the addition of reactive features.
While examining Panache, we learned that it could help us implement the Active Record and Repository patterns to implement database operations. For the hands-on part, we implemented database entities, repositories, and reactive output adapters that we used together to interact with the MySQL database. Finally, we configured the hexagonal system tests to use the MySQL Docker container that Quarkus provides.
In the next chapter, we'll learn about some techniques to package the hexagonal system in a Docker image. We'll also learn how to run the hexagonal system in a Kubernetes cluster. This knowledge will enable us to ready the application to be deployed to cloud-based environments.