Three Main Data Replication Strategies

日月星辰 发布在Programming

Replication is like backup, but owning a more important role than backup in distribute system.1

The Need for Replication

Synchronous Replication


The primary node waits for all replica to finish the operation and get "All is well", then the process is complete.

Pros and Cons

Asynchronous Replication


Immediate Response to Client.

Pros and Cons

Semi-synchronous Replication


It is a mix of the other two methods. It makes sure some of the updates are safe. It's a balanced approach.

Pros and Cons

Which one is right for you?

The factors we should Consider when you make decision.