Data replication maintains copies of data across multiple nodes in a distributed system. It improves availability, fault tolerance, durability, read performance, and access latency through geo-distribution. section 6.5
Interview answers should connect the replication model to its consistency, latency, and failure trade-offs:
- Synchronous replication completes a write only after replicas acknowledge it, strengthening consistency while increasing write latency. section 6.6
- Asynchronous replication acknowledges a write after the primary processes it, reducing latency but allowing temporary inconsistencies and replication lag. section 6.6
Primary and replica databases
A primary database receives user profiles, settings, and permissions, then asynchronously replicates them to two replica databases serving dashboard and profile reads. If the primary fails, replicas can continue serving read requests. section 6.5













