Tech_Interview_Prep

Database Scaling (Sharding & Replication)

Splitting data across machines (sharding) and copying it across machines (replication) — solving two different scaling problems.

Q1.What is database sharding?

Q2.What is the main purpose of read replicas?

Q3.What is replication lag?

Q4.What is a key challenge introduced by sharding that a single unsharded database doesn't have?