Transactions
MongoDB does not have a full ACID (Atomicity, Consistency, Isolation, Durability) support in a sense that MySQL has. It supports ACID transactions only at the document level. The multi-document transactions are not supported. The lack of ACID compliance certainly limits its use with platforms that depend on this feature. This is not to say that MongoDB cannot be used with such platforms. Let's consider a popular Magento e-commerce platform. There is nothing preventing Magento from adding MongoDB to the mix. While the MySQL features can guarantee ACID compliance around sales-related functionality, MongoDB can be used within the conjunction to cover bits around catalog functionality. This type of symbiosis can then easily bring ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access