Keeping Denormalized Cosmos DB Documents Consistent with TransactionalBatch
Denormalized Cosmos DB models often require two documents to change together. TransactionalBatch gives you atomic, all-or-nothing writes within one logical partition — here's how it works, a .NET example, and where it falls down.