Consistent Hashing - Rebalancing Partitions | Systems Design Interview 0 to 1 with Ex-Google SWE
Vložit
- čas přidán 24. 05. 2023
- They say if you've been putting too much load on one damsel it's a good sign to shard that and get another to help balance the stress
- Věda a technologie
Jordan has life of the great big sense. Thanks a lot for all of these videos!
Great work, thank you for that video
How are we choosing the K locations that belong to Nodes?
Uniform random distribution sorry if that wasn't explicit
How can we avoid hot partition issues in consistent hashing if some nodes are removed ? Also this was quite cool video thanks!!
Well generally speaking hot partitions will come up when one key in particular is hot which means it's pretty darn hard to avoid - at that point you have to kinda be clever about sharding even deeper within that key! Great question
@@jordanhasnolife5163 makes sense!!
🔥
so from what i understand, consistent hashing is taking all the shards(partition) and further sharding each of them into k shards per shard?
nope, the shards are not literally sharded again, they are hashed into k keys and placed on the ring in uniform distribution, you can think of them as virtual nodes, i think
thanks
Nice