Search⌘ K

Transactions Overview

Explore the key concepts of transactions in distributed databases with Cosmos DB. Understand the ACID properties, transaction limitations in partitioned containers, and how to implement write transactions using the .NET SDK. This lesson helps you grasp transaction consistency, concurrency control, and practical usage to safely manage data in globally distributed applications.

We'll cover the following...

Introduction

In the database world, a transaction is a series of operations that must succeed to apply the changes. In other words, if one operation fails, the transaction is considered a failure, and usually, changes are rolled back. Transactions are extremely important because they help keep data consistent and safe. A transaction has four main properties known as ACID (atomicity, consistency, isolation, durability), guaranteeing that other operations do not influence its execution.

Example

A classic example is the bank account balance update. We want to read ...