小编Nur*_*yev的帖子

使用 R2DBC 的动机是什么?

我对反应式弹簧堆栈非常陌生,目前正在探索R2DBC.

Could you explain me what are the benefits of using R2dbcRepository over wrapping blocking JpaRepository into Mono/Flux?

Let me bring some example of that:

val producer: Mono<BookEntity> = booksReactiveRepository.findById(id)
Run Code Online (Sandbox Code Playgroud)

vs

val producer: Mono<BookEntity> = Mono.fromSupplier { booksBlockingRepository.findById(id) }
Run Code Online (Sandbox Code Playgroud)

Is there any conceptual difference on execution?

spring-webflux spring-data-r2dbc r2dbc

2
推荐指数
1
解决办法
708
查看次数

标签 统计

r2dbc ×1

spring-data-r2dbc ×1

spring-webflux ×1