Picking a reactive data store
Realizing that JDBC wouldn’t be able to change enough to support Reactive Streams and needing to serve the growing community of Spring users that wanted to go reactive, the Spring team embarked upon a new solution in 2018. They drafted the Reactive Relational Database Connectivity (R2DBC) specification.
R2DBC as a specification reached 1.0 in early 2022, and for the rest of this chapter, we’ll be using it to build a reactive relational data story.
R2DBC? Tell me more!
If you want a little more detail about R2DBC, please check out former Spring Data team leader Oliver Drotbohm’s keynote presentation from the 2018 SpringOne conference at
https://springbootlearning.com/r2dbc-2018.
Since we want something super simple, we can use H2 as our relational database of choice. H2 is an in-memory, embeddable database. It’s frequently used for test purposes, but we can use it as a production application for now.
Along with...