Which data replication consistency model ensures that all replicas return the most recent write for a given data item?
Think about the model that guarantees immediate visibility of writes across all replicas.
Strong consistency means every read reflects the latest write, ensuring all replicas are synchronized immediately.
You want to design a data replication system for a global application that requires low read latency for users worldwide. Which replication topology is best suited?
Consider a topology that allows fast reads worldwide but may tolerate some delay in writes.
Asynchronous replicas distributed globally allow local reads with low latency, while writes propagate asynchronously to replicas.
Which replication strategy best helps scale write throughput in a distributed database system?
Think about allowing multiple nodes to accept writes simultaneously.
Multi-primary replication allows multiple nodes to accept writes, increasing write throughput by distributing load.
What is the main tradeoff when choosing synchronous replication over asynchronous replication?
Consider how waiting for replicas affects write speed and data safety.
Synchronous replication waits for replicas to confirm writes, increasing latency but preventing data loss.
A system uses asynchronous replication with an average replication lag of 200ms. If the system receives 1000 writes per second, what is the expected number of writes not visible on a replica at any moment?
Calculate lag in seconds multiplied by writes per second.
200ms = 0.2 seconds; 0.2 * 1000 writes/sec = 200 writes lagged on average.