Transactions are new in MongoDB but have existed in SQL databases for more than 30 years. Transactions are used to maintain consistency and correctness in database systems that are subjected to concurrent changes issued by multiple users.
Transactions generally result in improved consistency at the cost of reduced concurrency. Therefore, transactions have a large bearing on database performance.
This chapter is not intended as a tutorial on transactions. To learn how to program transactions, see the MongoDB manual ...