Making relational database access reactive

As JDBC is the primary language-level API for data access in the Java world (at least for relational data sources), it shapes the behavior of all abstraction levels built on top of it. Previously, we showed that blocking APIs are not recommended for use in reactive applications as they limit the application's scalability. Consequently, it is crucial for us to have a proper language-level database access API to be used in reactive applications. Unfortunately, there are no easy solutions that might tweak JDBC slightly for that purpose. At the moment, two promising API drafts may fit this niche, and we are going to look at them later in this chapter. The following diagram depicts what is required for making a reactive JDBC API:

Diagram 7.13 The current JDBC stack and a potential reactive replacement
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.38.176