Consistent Hashing - Rebalancing Partitions | Systems Design Interview 0 to 1 with Ex-Google SWE

Sdílet
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

Komentáře • 13

  • @MrDartfire
    @MrDartfire Před 3 měsíci +2

    Jordan has life of the great big sense. Thanks a lot for all of these videos!

  • @aleksandr_t
    @aleksandr_t Před 10 měsíci +1

    Great work, thank you for that video

  • @user-rv5yb9kj6w
    @user-rv5yb9kj6w Před rokem +4

    How are we choosing the K locations that belong to Nodes?

  • @LeoLeo-nx5gi
    @LeoLeo-nx5gi Před rokem +2

    How can we avoid hot partition issues in consistent hashing if some nodes are removed ? Also this was quite cool video thanks!!

    • @jordanhasnolife5163
      @jordanhasnolife5163  Před rokem +5

      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

    • @LeoLeo-nx5gi
      @LeoLeo-nx5gi Před rokem +1

      @@jordanhasnolife5163 makes sense!!

  • @htm332
    @htm332 Před rokem +1

    🔥

  • @aloha9938
    @aloha9938 Před měsícem +1

    so from what i understand, consistent hashing is taking all the shards(partition) and further sharding each of them into k shards per shard?

    • @aloha9938
      @aloha9938 Před měsícem +2

      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

    • @aloha9938
      @aloha9938 Před měsícem +1

      thanks

    • @jordanhasnolife5163
      @jordanhasnolife5163  Před měsícem

      Nice