/jh

Jump Consistent Hash command line utility and HTTP server

Primary LanguageRustOtherNOASSERTION

jh: Jump Consistent Hash utility

A simple command-line utility and HTTP server for computing consistent hashes using a Rust implementation of Jump Consistent Hash by Lamping & Veach.

Usage

Command-line utility

jh get "my key string" 1024
# => 731

HTTP server

jh server -p 3030
curl "http://127.0.0.1:3030/?k=my%20key%20string&n=1024"
# => 731

Installation

cargo build --release