/conhash

sandbox: consistent hashing for sharding in rust

Primary LanguageRustMIT LicenseMIT

conhash

This is a "sandbox" repo where I am learning about something, so it is not designed for reuse. :)

In main.rs data is assigned to shards according to a consistent hashing scheme then resharded with the same scheme. The amount of data that moved per run is printed.