Skip to content

How to use transactions over multiple databases #9882

Answered by vkarpov15
tayyabferozi asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately not, MongoDB doesn't support transactions across separate database clusters. You'd have to implement a transaction yourself using something like this: https://www.docs4dev.com/docs/en/mongodb/v3.6/reference/tutorial-perform-two-phase-commits.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Uzlopak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants