0
0
HLDsystem_design~5 mins

Read replicas in HLD - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a read replica in database systems?
A read replica is a copy of the primary database that handles read-only queries to reduce load on the primary and improve read scalability.
Click to reveal answer
beginner
How do read replicas improve system performance?
They distribute read traffic across multiple copies, reducing the load on the primary database and allowing more users to read data simultaneously.
Click to reveal answer
intermediate
What is eventual consistency in the context of read replicas?
Eventual consistency means that changes made on the primary database take some time to appear on read replicas, so reads might be slightly out-of-date temporarily.
Click to reveal answer
intermediate
Name one common challenge when using read replicas.
One challenge is replication lag, where the read replica is behind the primary, causing stale data to be served to users.
Click to reveal answer
intermediate
Why might a system use multiple read replicas instead of just one?
Multiple read replicas allow better load balancing, higher availability, and fault tolerance for read operations.
Click to reveal answer
What type of queries are typically sent to read replicas?
ASchema changes
BWrite queries
CRead-only queries
DBackup operations
What is a common downside of using read replicas?
AReplication lag causing stale reads
BIncreased write latency
CHigher cost for write operations
DLoss of data durability
Which of the following best describes eventual consistency?
AData changes propagate to replicas after some delay
BData is consistent only on the primary
CData is never consistent across replicas
DData is always immediately consistent across replicas
Why use multiple read replicas?
ATo improve write speed
BTo balance read load and increase availability
CTo reduce storage costs
DTo simplify schema migrations
Which component usually handles directing read queries to replicas?
AWrite coordinator
BPrimary database
CBackup service
DLoad balancer or query router
Explain what read replicas are and how they help scale database systems.
Think about how copying data helps many users read at the same time.
You got /4 concepts.
    Describe the challenges and trade-offs when using read replicas in a system.
    Consider what happens when data changes on the primary but not yet on replicas.
    You got /4 concepts.