Advanced System Design Fundamentals
0% completed
Sharding in Practice
Adding a fifth shard to a database of four can force about 80 percent of all rows to move to a different machine. That is the result under the simplest placement scheme, which Part 6 describes. Take a workplace chat app that 2 million people use each day. It stores about 7 terabytes of messages a year. If that history sat on four shards, a fifth shard would mean copying about 5.6 terabytes of live data.
The placement scheme is one of three decisions this lesson makes for that message service. The other two come first: whether to shard at all, and which column decides where each row goes
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%