MongoDB 4.0 adds support for multi-document transactions. This makes MongoDB the only open source data platform to combine the ACID guarantees of traditional relational databases, with the speed, flexibility, and power of the document model, and the intelligent distributed systems design to scale-out and place data where you need it.
Through snapshot isolation, transactions provide a consistent view of data, and enforce all-or-nothing execution to maintain data integrity. Transactions in MongoDB feel just like transactions developers are familiar with from relational databases, and are simple to add to any application that needs them.
The addition of multi-document transactions makes it easier than ever for developers to address a complete range of use-cases with MongoDB, while for many, simply knowing that they are available provides critical peace of mind.
In this white paper, we explore:
- Why MongoDB has added multi-document ACID transactions
- Their design goals, implementation, and developer best practices
- The engineering investments made over the past 3+ years to lay the foundations for them