Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第六章節:一致性哈希與散列哈希的分別 - Mason #65

Open
0x171-0 opened this issue Jul 19, 2022 · 2 comments
Open

第六章節:一致性哈希與散列哈希的分別 - Mason #65

0x171-0 opened this issue Jul 19, 2022 · 2 comments
Labels
question Further information is requested

Comments

@0x171-0
Copy link

0x171-0 commented Jul 19, 2022

看完文章寫得還是有點不太確定書上提到的意思,想請教:

分區邊界可以是均勻間隔的,也可以是偽隨機選擇的(在这种情况下,该技术有时也被称为 一致性哈希,即 consistent hashing)

  • 所以是說只要邊界是均勻間隔,就是散列哈希?如果是偽隨機就是一致性哈希?
  • 一致性哈希一致性的地方在哪裡?如果邊界隨機不是應該是不一致嗎?
@kylemocode kylemocode added the question Further information is requested label Jul 19, 2022
@Parkerhiphop
Copy link

用英文來理解比較有幫助, Consistent 比起一致性,連續的概念更強一點。
一致性的地方在於持續、連續,是一個到一個,而不是從頭去做 Hash。
一般的 Hash 都是用單純 Hash Function,從 0 到某個值,每個 Hash Value 之間沒有什麼關係。
這邊的 Hash 是根據上一個的狀態有所變化。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants