Skip to content

Instantly share code, notes, and snippets.

@sdeleuze
Last active November 20, 2017 17:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sdeleuze/a7348a2385a4d9a7bd727617a225ed06 to your computer and use it in GitHub Desktop.
Save sdeleuze/a7348a2385a4d9a7bd727617a225ed06 to your computer and use it in GitHub Desktop.
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
Copy link

schauder commented Oct 3, 2017

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

@schauder
Copy link

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
Copy link
Author

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