Fast Consistent Hashing in Constant Time

07/23/2023
by   Eric Leu, et al.
0

Consistent hashing is a technique that can minimize key remapping when the number of hash buckets changes. The paper proposes a fast consistent hash algorithm (called power consistent hash) that has O(1) expected time for key lookup, independent of the number of buckets. Hash values are computed in real time. No search data structure is constructed to store bucket ranges or key mappings. The algorithm has a lightweight design using O(1) space with superior scalability. In particular, it uses two auxiliary hash functions to achieve distribution uniformity and O(1) expected time for key lookup. Furthermore, it performs consistent hashing such that only a minimal number of keys are remapped when the number of buckets changes. Consistent hashing has a wide range of use cases, including load balancing, distributed caching, and distributed key-value stores. The proposed algorithm is faster than well-known consistent hash algorithms with O(log n) lookup time.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset