Instantly share code, notes, and snippets.

Embed
What would you like to do?
ReactiveJdbcTemplate

Since there seems to be some interest abbout the possibility to run WebFlux + SQL applications, I think there is maybe a room for a community driven project to experiment around this topic. Some guidelines or ideas I can share on that topic:

@schauder

This comment has been minimized.

Show comment
Hide comment
@schauder

schauder Oct 3, 2017

but with methods returning Mono
should be
but with methods returning Mono or Flux

schauder commented Oct 3, 2017

but with methods returning Mono
should be
but with methods returning Mono or Flux

@schauder

This comment has been minimized.

Show comment
Hide comment
@schauder

schauder Oct 3, 2017

I thought a little about the Scheduler. I think it might be better to support two schedulers: one as described which is used for executing queries and a second one (which might be the default scheduler of the application if something like this exists) to publish the results.

The idea would be that the DB interaction happens on a Scheduler that is essentially based on the connection pool, but you subscribe to the results on a Scheduler that is based on the capacity of your machine, probably the number of CPUs.

schauder commented Oct 3, 2017

I thought a little about the Scheduler. I think it might be better to support two schedulers: one as described which is used for executing queries and a second one (which might be the default scheduler of the application if something like this exists) to publish the results.

The idea would be that the DB interaction happens on a Scheduler that is essentially based on the connection pool, but you subscribe to the results on a Scheduler that is based on the capacity of your machine, probably the number of CPUs.

@sdeleuze

This comment has been minimized.

Show comment
Hide comment
@sdeleuze

sdeleuze Oct 3, 2017

Yeah good points, I update the doc!

Owner

sdeleuze commented Oct 3, 2017

Yeah good points, I update the doc!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment