0%

Understand the newest trend in database programming for developers working in Java, Kotlin, Clojure, and other JVM-based languages. This book introduces Reactive Relational Database Connectivity (R2DBC), a modern way of connecting to and querying relational databases from Java and other JVM languages. The book begins by helping you understand not only what reactive programming is, but why it is necessary. Then building on those fundamentals, the book takes you into the world of databases and the newly released Reactive Relational Database Connectivity (R2DBC) specification. 

Examples in the book are worked using the freely available MariaDB database along with MariaDB’s vendor-implementation of the R2DBC service-provider interface (SPI). Following along with the examples and the provided example code helps prepare you to work with any of the growing number of R2DBC implementations for popular enterprise databases such as Oracle Database and SQL Server. You’ll be well prepared for what is becoming the future of database access from Java and other languages built on the JVM.


What You Will Learn
  • Understand why R2DBC was created and how it utilizes the Reactive Streams API 
  • Understand the components of the R2DBC service-provider interface
  • Create and manage reactive database connections and connection pools using an R2DBC client
  • Programmatically execute queries on a relational database using an R2DBC client
  • Effectively utilize transactions using an R2DBC client
  • Build relational database-driven applications that are event-driven and non-blocking

Who This Book Is For

Software developers building solutions using JVM languages and the JVM ecosystem, and developers who need an introduction to the R2DBC specification and reactive programming with relational databases and want to understand what Reactive Relational Database Connectivity is and why it came about. This book includes practical examples of using the R2DBC specification with Java and MariaDB that will provide developers with the knowledge they need to create their own solutions.

Table of Contents

  1. Cover
  2. Front Matter
  3. Part I. The Reactive Movement and R2DBC
    1. 1. The Case for Reactive Programming
    2. 2. Introduction to R2DBC
  4. Part II. The R2DBC Service-Provider Interface
    1. 3. The Path to Implementation
    2. 4. Connections
    3. 5. Transactions
    4. 6. Statements
    5. 7. Handling Results
    6. 8. Result Metadata
    7. 9. Mapping Data Types
    8. 10. Handling Exceptions
  5. Part III. Getting Started with R2DBC and MariaDB
    1. 11. Getting Started with R2DBC
    2. 12. Managing Connections
    3. 13. Managing Data
    4. 14. Managing Transactions
    5. 15. Connection Pooling
    6. 16. Practical Applications with Spring Data and R2DBC
  6. Back Matter
3.133.79.70