Transaction Support for mongoDB with Reactive flow #34118
Replies: 5 comments 1 reply
-
@loicmathieu @cescoffier If you can direct in some way it will help do it the right way. |
Beta Was this translation helpful? Give feedback.
-
@Debu999 this functionality will be provided by Quarkus 3.2, see the PR #32794 |
Beta Was this translation helpful? Give feedback.
-
Closing the same as its already made available from 3.2 in quarkus. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
works like a charm @loicmathieu Thanks for bringing the feature in. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been trying out various options on using transactions with reactive flow on Quarkus 3.0.
I have made some headway and simple ones work just fine but need to know the right way to implement the same
@transaction does not seem to work when there is failures and mongo db documents update.
What i tried till now
not sure why but i had to add the following for the second transaction
References:
[1] how-to-efficiently-handle-transactions-with-the-reactive-java-driver-clarifications-on-api
[2] mongodb-multi-document-acid-transactions-general-availability
[3] [MongoDB Transactions Docs] (https://www.mongodb.com/docs/manual/core/transactions)
[4] [Java MongoDB Transactions] (https://hevodata.com/learn/java-mongodb-transactions/)
[5] [how-to-create-transactions-using-mongodb-java] (https://stackoverflow.com/questions/63997699/how-to-create-transactions-using-mongodb-java)
[6] [Open Jira Epic for OOB Support] (https://jira.mongodb.org/browse/JAVA-3222)
[7] [Actual Jira with mongodb - Implement convenient reactive API for Transactions] (https://jira.mongodb.org/browse/JAVA-3539)
[8] More ref
[9] [More reference] (https://github.com/mongodb/mongo-java-driver-reactivestreams/blob/master/driver/src/main/com/mongodb/reactivestreams/client/ClientSession.java)
https://www.mongodb.com/community/forums/t/given-transaction-number-does-not-match-any-in-progress-transactions/703/4
https://stackoverflow.com/questions/58487982/how-to-prevent-given-transaction-number-1-does-not-match-any-in-progress-transa
https://www.mongodb.com/community/forums/t/given-transaction-number-does-not-match-any-in-progress-transactions-with-mongo-java/223755
https://www.digitalocean.com/community/tutorials/how-to-use-transactions-in-mongodb
Beta Was this translation helpful? Give feedback.
All reactions