0
0
HLDsystem_design~5 mins

Data replication strategies in HLD - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is data replication in system design?
Data replication is the process of copying and maintaining database or data storage copies across multiple servers or locations to improve availability, fault tolerance, and performance.
Click to reveal answer
intermediate
Explain the difference between synchronous and asynchronous replication.
Synchronous replication waits for data to be copied to all replicas before confirming success, ensuring consistency but adding latency. Asynchronous replication confirms success immediately and copies data later, improving speed but risking temporary inconsistency.
Click to reveal answer
beginner
What is master-slave replication?
Master-slave replication means one server (master) handles writes and updates, while one or more servers (slaves) copy data from the master and serve read requests, improving read scalability.
Click to reveal answer
advanced
Describe multi-master replication and its main challenge.
Multi-master replication allows multiple servers to accept writes and replicate changes to each other. The main challenge is conflict resolution when the same data is changed on different masters simultaneously.
Click to reveal answer
intermediate
What is eventual consistency in replication?
Eventual consistency means that replicas may temporarily differ but will become consistent over time once all updates propagate, trading immediate consistency for better availability and performance.
Click to reveal answer
Which replication strategy waits for all replicas to confirm before completing a write?
AEventual consistency
BAsynchronous replication
CMaster-slave replication
DSynchronous replication
In master-slave replication, which server handles write operations?
AMaster
BSlave
CBoth master and slave
DNone
What is a key challenge of multi-master replication?
AScaling reads
BData backup
CConflict resolution
DLatency reduction
Which replication type offers lower latency but may cause temporary inconsistency?
AAsynchronous replication
BMulti-master replication
CMaster-slave replication
DSynchronous replication
What does eventual consistency guarantee?
AImmediate data consistency
BData will become consistent over time
CNo data replication
DSynchronous writes
Explain the main differences between synchronous and asynchronous data replication.
Think about when the system confirms a write is successful.
You got /3 concepts.
    Describe master-slave and multi-master replication strategies and their use cases.
    Consider read/write patterns and conflict handling.
    You got /3 concepts.