Skip to main content
PreparationZone Logo
PreparationZone
Back to Fundamentals

Fundamentals · Hard · Free

What is sharding? Horizontal vs vertical split.

FresherFundamentalsDatabase Fundamentals
Model answer

Sharding

For What is sharding? Horizontal vs vertical split., interviewers listen for a crisp definition, how the pieces interact in a real system, and one trade-off or failure mode you have seen or would guard against.

HorizontalVertical
SplitRows by shard keyTables by feature
Exampleuser_id % 4billing DB vs catalog DB
Sharding last resort—exhaust indexes + read replicas first.