akka/akka-core

Use Rendezvous hashing instead of consistent hashing

開放

#17,247 建立於 2015年4月21日

 (8 則留言) (0 個反應) (0 位負責人)Scala (3,547 個分叉)batch import
3 - in progresshelp wantedt:cluster

倉庫指標

星標
 (13,277 顆星)
PR 合併指標
 (平均合併 8天 19小時) (30 天內合併 10 個 PR)

描述

See https://en.wikipedia.org/wiki/Rendezvous_hashing

  • it is simpler, does not need virtual nodes or a ring at all
  • rebalances are uniform independently of node removal or addition
  • more flexible, for example allows consistently hashed groups, not just single nodes

It is a very nice pattern, I think we can have other good uses for it in the future.

(details on why it is better: https://en.wikipedia.org/wiki/Rendezvous_hashing#Comparison_With_Consistent_Hashing)

貢獻者指南