Cosmos DB patterns (4) — optimistic concurrency with ETags
Lost update: two processes read, modify, and save the same document — the last write overwrites the first. ETags and IfMatchEtag prevent the problem, with retry on PreconditionFailed and the Patch alternative for targeted operations.
Citește mai mult