Persisting Data with Output Adapters and Hibernate Reactive
In the previous chapter, we learned about some of the advantages that can be brought to a system by using Quarkus reactive capabilities. Our first step on the reactive road was to implement Reactive input adapters using RESTEasy Reactive. Although the input adapters’ endpoints are being served reactively, we still have the output adapters working in a synchronous and blocking fashion.
To turn the hexagonal system into a more Reactive one, in this chapter, we’ll first learn how to configure Object Relational Mapping (ORM) on system entities by using Hibernate Reactive and Panache
. Once the system entities are properly configured, we’ll learn how to use these entities to connect to a MySQL database reactively.
The following are the topics we’ll cover in this chapter:
- Introducing Hibernate Reactive and
Panache
- Enabling reactive behavior on output adapters
- Testing reactive output...