TLDR: Replication Strategies - Synchronous, Asynchronous, and Semi-Synchronous
Date: 2021-08-10 Source: https://arpitbhayani.me/blogs/replication-strategies
Overview
Explore synchronous, asynchronous, and semi-synchronous data replication strategies in distributed systems. Understand their trade-offs and implications. In a distributed system, when replication is set up between data nodes, there are typically three replication strategies - Synchronous, Asynchronous, and Semi-synchronous.
Key Points
- prepare for disaster recovery, or
- improve performance by leveraging parallel reads across replicated data, or
- keep the data geographically close to the user, e.g., CDN
- Synchronous Replication: In Synchronous Replication, once the Master node updates its own copy of the data, it initiates the write operation on its replicas.
- Asynchronous Replication: In Asynchronous Replication, once the Master node updates its own copy of the data, it immediately completes the operation by responding to the Client.