Transactions in MongoDB
blog.mongodb.org
Transactions in MongoDB
1–2 of 2 posts
Re: Transactions in MongoDB
#2While I enjoy using MongoDB where appropriate, this example provided is somewhat of a straw man fallacy because it's missing the part of the transaction which decrements from the total number of each item available.
Edit: To address the issue of the total number decrement needed above, there is the two-phase commit, but then you're getting into something that isn't a transaction, by definition, and is more along the lines of eventual consistency.