TLDR: Multi-Master Replication - Why Conflicts Happen
Date: 2021-11-28 Source: https://arpitbhayani.me/blogs/conflict-detection
Overview
Understand conflicts in multi-master databases - Learn how to detect and resolve data inconsistencies for reliable systems. Every multi-master replication setup comes with a side-effect - Conflicts.
Key Points
- Every multi-master replication setup comes with a side-effect - Conflicts.
- Conflict happens when two or more database accepts conflicting updates on the same record.
- We say that the updates are conflicting when we are unable to resolve them to one value deterministically.
- In this essay, we talk about conflicts and understand what they are, how to detect them.
- Say we are building an online book store allowing users to purchase books at the click of a button.
- Like any e-commerce application, even ours has a Shopping Cart, which acts as a staging area for everything the user shops for.