A Fast, Minimal Memory, Consistent Hash Algorithm

John Lamping, Eric Veach
2014
2 references

Abstract

We present jump consistent hash, a fast, minimal memory, consistent hash algorithm that can be expressed in about 5 lines of code. In comparison to the algorithm of Karger et al., jump consistent hash requires no storage, is faster, and does a better job of evenly dividing the key space among the buckets and of evenly dividing the workload when the number of buckets changes. Its main limitation is that the buckets must be numbered sequentially, which makes it more suitable for data storage applications than for distributed web caching.

1 repository
2 references

Code References

â–¶ ClickHouse/ClickHouse
1 file
â–¶ src/Functions/jumpConsistentHash.cpp
2
/// Code from https://arxiv.org/pdf/1406.2294.pdf
Calculates the [jump consistent hash](https://arxiv.org/pdf/1406.2294.pdf) for an integer.
Link copied to clipboard!