I'm curious to the transactions and R2DBC. The doc...
# micronaut
b
I'm curious to the transactions and R2DBC. The documentation says it's hard, that it's taken care of in certain cases, and that I should explicitly set some annotations. It's not a very clear documentation and I feel a bit insecure about the facts vs opinions of the implementation? https://micronaut-projects.github.io/micronaut-r2dbc/1.0.x/guide/#transactionManagement Can anyone guide me? I'm using Coroutines and
CoroutineCrudRepository
and not pure Project Reactor. Also the `@R2dbcRepository(dialect = Dialect.POSTGRES)`on my repos.
a
Hello Bob. Can you be more specific about your concerns? On my current project we are using Micronaut Data R2DBC with coroutines. It works fine. Nevertheless, think carefully about using R2DBC in general. Sometimes you don't need it. Depends on you requirements. If you have a lot of relations in your DB model, maybe it not worth it to use R2DBC and Hibernate will be a better choice for you.
b
@Artyom Gornostayev My main concern is that it's not stable - it feels like a safeguard to in the documentation say "it is hard" and sorta put the blame on other implementations not doing it correctly if it might fail. So I wanted some opinions and experiences so it's great to know it's working for you. I've had my service up and running for two weeks now and it works as intended. Rolling back on transaction failures when it should etc 👍