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?










share|improve this question






















  • 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

















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?










share|improve this question






















  • 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















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?










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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




















  • 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














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.






share|improve this answer

















  • 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











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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

























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.






share|improve this answer

















  • 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















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.






share|improve this answer

















  • 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













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.






share|improve this answer












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.







share|improve this answer












share|improve this answer



share|improve this answer










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














  • 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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Florida Star v. B. J. F.

Error while running script in elastic search , gateway timeout

Adding quotations to stringified JSON object values