Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Hash space and hash ring

Sumit Rawal answered on May 21, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • ruby are spaces in keys of hashes allowed
  • HashLocationStrategy
  • create a new hash from existing hash ruby
  • how to make a new hash ruby
  • hash table hashing method
  • creating hashblock method using sha256 hashing algorithm
  • what happens if hashcode and equals contract voilated

  • Hash space and hash ring

    0

    Now we understand the definition of consistent hashing, let us find out how it works. Assume SHA-1 is used as the hash function f, and the output range of the hash function is: x0, x1, x2, x3, …, xn. In cryptography, SHA-1’s hash space goes from 0 to 2^160 - 1. That means x0 corresponds to 0, xn corresponds to 2^160 – 1, and all the other hash values in the middle fall between 0 and 2^160 - 1. Figure 3 shows the hash space.

    Figure 3

    Figure 3

    By collecting both ends, we get a hash ring as shown in Figure 4:

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 21 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.