/java-consistent-hashing-algorithms

Java implementations of the most popular and best performing consistent hashing algorithms for non-peer-to-peer contexts.

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

java-consistent-hashing-algorithms

This project collects Java implementations of the most popular and best performing consistent hashing algorithms for non-peer-to-peer contexts.

The implemented algorithms are:

Each implementation is divided into two classes:

  • Each Engine class (e.g., AnchorEngine) contains an accurate implementation of the algorithm as described in the related paper. These classes do not make any consistency check to keep the performance as close as possible to what was claimed in the related papers.
  • Each Hash class (e.g., AnchorHash) is a wrapper of the related Engine class allowing every implementation to match the same interface. These classes also perform all the consistency checks needed to grant a safe execution.