Why Spring not providing reactive (non-blocking) clients for relational databases?
up vote
1
down vote
favorite
I've used Vert.x toolkit for creating reactive applications with support for relational DBs like MySQL and Postgres. I know Spring provides reactive support for some NoSQL DBs like Cassandra and Mongo but are they willing to provide the same for relational DBs?
spring spring-boot spring-data spring-webflux
add a comment |
up vote
1
down vote
favorite
I've used Vert.x toolkit for creating reactive applications with support for relational DBs like MySQL and Postgres. I know Spring provides reactive support for some NoSQL DBs like Cassandra and Mongo but are they willing to provide the same for relational DBs?
spring spring-boot spring-data spring-webflux
Spring WebFlux and rxjava2-jdbc by Robert B Roeser link.medium.com/6ONWHPEsKR
– uneq95
Nov 11 at 4:20
stackoverflow.com/questions/42299455/…
– uneq95
Nov 11 at 4:21
baeldung.com/rxjava-jdbc
– uneq95
Nov 11 at 4:22
github.com/davidmoten/rxjava2-jdbc
– uneq95
Nov 11 at 4:23
I've seen some of those alternatives, but none of them is provided by Spring
– Mis94
Nov 11 at 9:39
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I've used Vert.x toolkit for creating reactive applications with support for relational DBs like MySQL and Postgres. I know Spring provides reactive support for some NoSQL DBs like Cassandra and Mongo but are they willing to provide the same for relational DBs?
spring spring-boot spring-data spring-webflux
I've used Vert.x toolkit for creating reactive applications with support for relational DBs like MySQL and Postgres. I know Spring provides reactive support for some NoSQL DBs like Cassandra and Mongo but are they willing to provide the same for relational DBs?
spring spring-boot spring-data spring-webflux
spring spring-boot spring-data spring-webflux
asked Nov 11 at 1:10
Mis94
5131617
5131617
Spring WebFlux and rxjava2-jdbc by Robert B Roeser link.medium.com/6ONWHPEsKR
– uneq95
Nov 11 at 4:20
stackoverflow.com/questions/42299455/…
– uneq95
Nov 11 at 4:21
baeldung.com/rxjava-jdbc
– uneq95
Nov 11 at 4:22
github.com/davidmoten/rxjava2-jdbc
– uneq95
Nov 11 at 4:23
I've seen some of those alternatives, but none of them is provided by Spring
– Mis94
Nov 11 at 9:39
add a comment |
Spring WebFlux and rxjava2-jdbc by Robert B Roeser link.medium.com/6ONWHPEsKR
– uneq95
Nov 11 at 4:20
stackoverflow.com/questions/42299455/…
– uneq95
Nov 11 at 4:21
baeldung.com/rxjava-jdbc
– uneq95
Nov 11 at 4:22
github.com/davidmoten/rxjava2-jdbc
– uneq95
Nov 11 at 4:23
I've seen some of those alternatives, but none of them is provided by Spring
– Mis94
Nov 11 at 9:39
Spring WebFlux and rxjava2-jdbc by Robert B Roeser link.medium.com/6ONWHPEsKR
– uneq95
Nov 11 at 4:20
Spring WebFlux and rxjava2-jdbc by Robert B Roeser link.medium.com/6ONWHPEsKR
– uneq95
Nov 11 at 4:20
stackoverflow.com/questions/42299455/…
– uneq95
Nov 11 at 4:21
stackoverflow.com/questions/42299455/…
– uneq95
Nov 11 at 4:21
baeldung.com/rxjava-jdbc
– uneq95
Nov 11 at 4:22
baeldung.com/rxjava-jdbc
– uneq95
Nov 11 at 4:22
github.com/davidmoten/rxjava2-jdbc
– uneq95
Nov 11 at 4:23
github.com/davidmoten/rxjava2-jdbc
– uneq95
Nov 11 at 4:23
I've seen some of those alternatives, but none of them is provided by Spring
– Mis94
Nov 11 at 9:39
I've seen some of those alternatives, but none of them is provided by Spring
– Mis94
Nov 11 at 9:39
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
Spring WebFlux is a great way to create a non-blocking REST application. One issue that you run into when start working with WebFlux is JDBC, because JDBC is blocking. New school databases like Cassandra or Couchbase have non-blocking drivers. In Couchbase’s case its driver uses RXJava. There is some effort going into creating asynchronous drivers for databases, as well as Oracle’s effort to create ADBA. Unfortunately, these are early days, and if you want to talk to a SQL database on the JVM you’re stuck with a blocking driver.
Actually, Spring is not responsible for providing a none blocking driver for relational databases.
2
I don't know why this has been downvoted but i also have read that jdbc is blocking by its nature.
– uneq95
Nov 11 at 12:25
You are right, but I'm wondering as I mentioned other tools like Vert.x provide async clients for relational databases.
– Mis94
Nov 11 at 16:52
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Spring WebFlux is a great way to create a non-blocking REST application. One issue that you run into when start working with WebFlux is JDBC, because JDBC is blocking. New school databases like Cassandra or Couchbase have non-blocking drivers. In Couchbase’s case its driver uses RXJava. There is some effort going into creating asynchronous drivers for databases, as well as Oracle’s effort to create ADBA. Unfortunately, these are early days, and if you want to talk to a SQL database on the JVM you’re stuck with a blocking driver.
Actually, Spring is not responsible for providing a none blocking driver for relational databases.
2
I don't know why this has been downvoted but i also have read that jdbc is blocking by its nature.
– uneq95
Nov 11 at 12:25
You are right, but I'm wondering as I mentioned other tools like Vert.x provide async clients for relational databases.
– Mis94
Nov 11 at 16:52
add a comment |
up vote
1
down vote
Spring WebFlux is a great way to create a non-blocking REST application. One issue that you run into when start working with WebFlux is JDBC, because JDBC is blocking. New school databases like Cassandra or Couchbase have non-blocking drivers. In Couchbase’s case its driver uses RXJava. There is some effort going into creating asynchronous drivers for databases, as well as Oracle’s effort to create ADBA. Unfortunately, these are early days, and if you want to talk to a SQL database on the JVM you’re stuck with a blocking driver.
Actually, Spring is not responsible for providing a none blocking driver for relational databases.
2
I don't know why this has been downvoted but i also have read that jdbc is blocking by its nature.
– uneq95
Nov 11 at 12:25
You are right, but I'm wondering as I mentioned other tools like Vert.x provide async clients for relational databases.
– Mis94
Nov 11 at 16:52
add a comment |
up vote
1
down vote
up vote
1
down vote
Spring WebFlux is a great way to create a non-blocking REST application. One issue that you run into when start working with WebFlux is JDBC, because JDBC is blocking. New school databases like Cassandra or Couchbase have non-blocking drivers. In Couchbase’s case its driver uses RXJava. There is some effort going into creating asynchronous drivers for databases, as well as Oracle’s effort to create ADBA. Unfortunately, these are early days, and if you want to talk to a SQL database on the JVM you’re stuck with a blocking driver.
Actually, Spring is not responsible for providing a none blocking driver for relational databases.
Spring WebFlux is a great way to create a non-blocking REST application. One issue that you run into when start working with WebFlux is JDBC, because JDBC is blocking. New school databases like Cassandra or Couchbase have non-blocking drivers. In Couchbase’s case its driver uses RXJava. There is some effort going into creating asynchronous drivers for databases, as well as Oracle’s effort to create ADBA. Unfortunately, these are early days, and if you want to talk to a SQL database on the JVM you’re stuck with a blocking driver.
Actually, Spring is not responsible for providing a none blocking driver for relational databases.
answered Nov 11 at 7:14
M-Razavi
1,32711731
1,32711731
2
I don't know why this has been downvoted but i also have read that jdbc is blocking by its nature.
– uneq95
Nov 11 at 12:25
You are right, but I'm wondering as I mentioned other tools like Vert.x provide async clients for relational databases.
– Mis94
Nov 11 at 16:52
add a comment |
2
I don't know why this has been downvoted but i also have read that jdbc is blocking by its nature.
– uneq95
Nov 11 at 12:25
You are right, but I'm wondering as I mentioned other tools like Vert.x provide async clients for relational databases.
– Mis94
Nov 11 at 16:52
2
2
I don't know why this has been downvoted but i also have read that jdbc is blocking by its nature.
– uneq95
Nov 11 at 12:25
I don't know why this has been downvoted but i also have read that jdbc is blocking by its nature.
– uneq95
Nov 11 at 12:25
You are right, but I'm wondering as I mentioned other tools like Vert.x provide async clients for relational databases.
– Mis94
Nov 11 at 16:52
You are right, but I'm wondering as I mentioned other tools like Vert.x provide async clients for relational databases.
– Mis94
Nov 11 at 16:52
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244964%2fwhy-spring-not-providing-reactive-non-blocking-clients-for-relational-database%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Spring WebFlux and rxjava2-jdbc by Robert B Roeser link.medium.com/6ONWHPEsKR
– uneq95
Nov 11 at 4:20
stackoverflow.com/questions/42299455/…
– uneq95
Nov 11 at 4:21
baeldung.com/rxjava-jdbc
– uneq95
Nov 11 at 4:22
github.com/davidmoten/rxjava2-jdbc
– uneq95
Nov 11 at 4:23
I've seen some of those alternatives, but none of them is provided by Spring
– Mis94
Nov 11 at 9:39