What is replication in distributed systems?
The process of copying data across multiple nodes to ensure reliability and availability.
Replication is crucial for maintaining data integrity and accessibility in distributed environments.
What is the difference between synchronous and asynchronous replication?
Synchronous replication waits for all replicas to acknowledge before confirming a write, while asynchronous does not.
This difference affects the consistency and performance of data updates.
What problem does replication lag cause?
Clients may see stale data due to delays in propagating updates to all replicas.
Replication lag can lead to inconsistencies in user experience and data accuracy.
What is leaderless replication?
A replication model where any node can accept writes, and consistency is achieved through quorum protocols.
Leaderless replication enhances fault tolerance and scalability.
What are common consistency anomalies with replication?
Reading stale data, reading out-of-order updates, and not reading your own writes.
These anomalies can complicate application logic and user interactions.