![]() This outcome occurs no matter what the value of the conflict resolution path is. When delete conflicts are involved, the deleted version always wins over either insert or replace conflicts. All regions will converge to a single winner and end up with the same version of the committed item. The system determines the winner if multiple items have the same numeric value for the conflict resolution path. If two or more items conflict on insert or replace operations, the item with the highest value for the conflict resolution path becomes the winner. A custom numerical property is also referred to as the conflict resolution path. If you use the API for NoSQL, you can specify any other custom numerical property (e.g., your own notion of a timestamp) to be used for conflict resolution. It's based on the time-synchronization clock protocol. ![]() Last Write Wins (LWW): This resolution policy, by default, uses a system-defined timestamp property. You can select from two conflict resolution policies on an Azure Cosmos DB container: Replace conflicts: These conflicts can occur when an application updates the same item simultaneously in two or more regions.ĭelete conflicts: These conflicts can occur when an application simultaneously deletes an item in one region and updates it in another region.Īzure Cosmos DB offers a flexible policy-driven mechanism to resolve write conflicts. ![]() For example, this conflict might occur with an ID property. Insert conflicts: These conflicts can occur when an application simultaneously inserts two or more items with the same unique index in two or more regions. ![]() Update conflicts can be of the following three types: Conflicts and conflict resolution policies are applicable if your Azure Cosmos DB account is configured with multiple write regions.įor Azure Cosmos DB accounts configured with multiple write regions, update conflicts can occur when writers concurrently update the same item in multiple regions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |