akka/akka-core

Use Rendezvous hashing instead of consistent hashing

Open

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

在 GitHub 查看
 (8 留言) (0 反應) (0 負責人)Scala (13,277 star) (3,547 fork)batch import
3 - in progresshelp wantedt:cluster

描述

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)

貢獻者指南