ketama-hash-ring
Zero-Dependency Jump Consistent Hash, Weighted Ketama Ring & Google Maglev Lookup Tables
Overview
ketama-hash-ring implements zero-dependency Jump Consistent Hash (jump_consistent_hash), weighted Ketama virtual-node rings (ConsistentHashRing), and compact Google Maglev O(1) lookup tables (MaglevHash).
Installation
Usage
use ;
let mut ring = new;
ring.add_node;
ring.add_node;
let replicas = ring.get_replicas;
assert_eq!;
let maglev = with_table_size;
assert!;
assert!;
Verification
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For inquiries, please contact the author at root@devhub.vip.