HardEvaluateDatabase Scalingopen_ended
Design a sharding strategy for a social network where you need to efficiently fetch all posts by a user AND efficiently fetch a global feed of recent posts.
Evaluate — Tests ability to make judgments and justify decisions.
Want to see the correct answer?
Get the answer with a detailed explanation, plus practice 21+ more Database Scaling questions with adaptive quizzes and timed interviews.
See the Answer on Guru Sishya →This question is from the Database Scaling topic (System Design).
More Database Scaling Questions
What is the primary purpose of a read replica in a database setup?
EasyIn master-slave replication, replicas can accept write operations.
EasyWhich sharding strategy ensures that adding a new shard requires moving minimal data?
Medium-EasyWhat is replication lag and why does it matter?
Medium-EasyWhat is the difference between vertical partitioning and horizontal partitioning (sharding)?
Medium-Easy