Optimistic replication is a replication scheme used in
This means that each data item is replicated on N nodes in the system. Dynamo uses the eventually consistent model, which means that the system eventually converges on a consensus, since replication is done asynchronously. This replication scheme is known as an optimistic replication, because the replicas are not guaranteed to be identical at all times.
The following example shows how data is replicated on successor nodes in Dynamo:
In Dynamo, every node has a list of nodes on which it replicates the data. This list is known as the node’s preference list. It contains more than the N successor nodes and skips similar virtual nodes. Similar virtual nodes are skipped to ensure that each data item is replicated on a unique physical node. The rationale behind choosing a value greater than N for the number of nodes in the preference list is that the engineers wanted to make the system highly available. Therefore, even in the case of N server failures, the node is able to replicate the data on the nodes ahead of the N successor nodes.