white paper

Multi-Document ACID Transactions on MongoDB

Support for multi-document ACID transactions debuted in the MongoDB 4.0 release in 2018, and were extended in 2019 with MongoDB 4.2 enabling Distributed Transactions across shared clusters.

Multi-document ACID transactions make it easier than ever for developers to address the full spectrum of use cases with MongoDB. With snapshot isolation and all-or-nothing execution your applications maintain transactional data integrity, even across highly distributed sharded clusters.

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.

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 5+ years to lay the foundations for them