Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

r2dbc feasibility for production applications and future roadmap

I've been closely following r2dbc updates by pivotal and I wish to build my application using this approach. I have tried few small applications with r2dbc postgres driver as below :

        <dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-jdbc</artifactId>
            <version>1.0.0.r2dbc-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>io.r2dbc</groupId>
            <artifactId>r2dbc-postgresql</artifactId>
            <version>1.0.0.BUILD-SNAPSHOT</version>
        </dependency>

As mentioned by Pivotal, this is an experimental project whose end goal is to ultimately influence ADBA. This could be very useful if included in release versions of Spring/SpringBoot. Now the question is, what exactly are the drawbacks which stops Pivotal from including it under a RELEASE version. Also, is it suggested to go live with a SNAPSHOT version?

Thanks, GV

like image 624
Crickcoder Avatar asked Nov 12 '18 05:11

Crickcoder


People also ask

What is r2dbc and how does it work?

Introduction R2DBC (Reactive Relational Database Connectivity) is an effort presented by Pivotal during Spring One Platform 2018. It intends to create a reactive API to SQL databases.

What is r2dbc in spring webflux?

When used with Spring WebFlux, R2DBC allows us to write an application that handles data asynchronously from the top and all the way down to the database. As always the code is available at GitHub.

Is it possible to use r2dbc-h2 and Liquibase in production?

The dream would be to use r2dbc-h2 while developing locally, and then use something like postgres during production. Liquibase would manage the table structure both locally and in production. Been trying to google a bit about how such a setup would look like and there is very little information out there.


1 Answers

The biggest drawback toward making an officially RELEASE'd version of R2DBC's modules is simply that it's too early.

We iterating with several modules (PostgreSQL, H2, and MS SQL Server), and community feedback is critical towards honing the driver-level SPI along with building more user-friendly clients.

If you check it out, we just released 1.0.0.M6.

This project will thrive with more community involvement and feedback. As for when it will be ready to be included in Spring Boot, we don't know the answer to that.

like image 191
gregturn Avatar answered Nov 15 '22 10:11

gregturn