-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction pattern #4
Comments
Hi Rohana, Thank you for your suggestion. We could indeed implement a generic wrapper allowing you to define a 2 two phase commit transaction pattern. The user would have to specify a rollback Action that would reset the state of both documents if something goes wrong. Doing this in a generic fashion would also mean that a new type of base document should be added, in order to store pending transactions within the document in a generic way. I will have a look :) |
Hi Alexandre, Thanks for the answer!! But I was thinking about adding support to Mongo 4.0, which has transactions natively. :) |
Sorry for the late reply I was away on holiday :) |
Hi @alexandre-spieser. Was this ever implemented? |
No this is still in the pipeline, I prioritized other issues. |
Hi @alexandre-spieser Thanks! |
Absolutely, you can override a lot of thing. eshkard supplied a zip file with some work around transactions. Hope this helps :) |
Thanks @alexandre-spieser it really helped! Thanks for the work! |
Yeah I'll eventually get to it, it's just that integration testing it takes a LOT of time, and I've been working on other things lately. |
Hi,
You intend to implement a transaction-like pattern such as two-phase commit?
The text was updated successfully, but these errors were encountered: