r2dbc-postgresql

Connection-reuse and transactions (relationship)

↘锁芯ラ 提交于 2021-01-28 05:00:24
问题 How does R2DBC implement transaction-handling. As far as I know, JDBC use one connection for one transaction. So in Spring MVC we have the following mapping: 1 request : 1 thread : 1 transaction : 1 connection. What is the mapping in Webflux with R2DBC? Webflux is reactive, so when we open one transaction, does it use one connection until the end of the transaction? If so, then a transaction is something like a blocking operation because, while the transaction is active no other transaction