Understanding consistency and conflict resolution
In this section, we’ll understand the consistency model of DynamoDB global tables, followed by the conflict resolution protocols.
Cross-region consistency
DynamoDB global tables use asynchronous replication to propagate updates across regions. When a write operation is performed on a global table, it is first written to the local table of the region where the write operation was initiated. Then, the change is asynchronously propagated to the replica tables in other regions. This asynchronous replication allows for lower latencies and higher availability as updates can be processed locally without the need to wait for confirmation from other regions.
A common analogy for asynchronous replication is sending a letter through the mail. When you send a letter, you drop it off at your local post office, and it is then delivered to the recipient’s local post office, where it is finally delivered to the recipient. The...