Wrapping blocking I/O in project reactor

后端 未结 1 1354
再見小時候
再見小時候 2021-02-03 12:49

I have a spring-webflux API which, at a service layer, needs to read from an existing repository which uses JDBC.

Having done some reading on the subject, I would like t

相关标签:
1条回答
  • 2021-02-03 13:12

    1) Use of subscribeOn is correctly putting the JDBC work on the jdbcScheduler

    2) Neither, the results of the Callable - while computed on the jdbcScheduler, are publishOn the parallel Scheduler, so your map will be executed on a thread from the Schedulers.parallel() pool (rather than hogging the jdbcScheduler).

    0 讨论(0)
提交回复
热议问题