System Design Patterns: From Fundamentals to Real Systems
0% completed
Consistent Hashing
Here are six of the store's customers, the hash of each customer ID, and the shard each one would live on under two routing rules:
| <span style="white-space:nowrap">Customer</span> | <span style="white-space:nowrap">hash(customer_id)</span> | % 4 <span style="white-space:nowrap">picks</span> shard | % 5 picks shard |
|---|---|---|---|
u_204 (Maya) | 2,914,377,020 | 1 | 1 |
c_1088 | 1,605,233,857 | 2 | 3 |
c_3317 | 3,770,410,946 | 3 | 2 |
c_5402 | 418,926,509 | 2 | 5 |
c_6630 | 2,236,118,775 | 4 | 1 |
c_8121 | 4,051,762,698 | 3 | 4 |
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%