Categorygithub.com/anyproto/go-chash
modulepackage
0.1.0
Repository: https://github.com/anyproto/go-chash.git
Documentation: pkg.go.dev

# README

CHash

A lightweight library for load distribution.

Alpha

Description

Combines modular hashing and consistent hashing. The algorithm distributes partitions between nodes using consistent hashing, then uses modular hashing to determine partition for key (and thus the node for key).

The algorithm limits the load on a node, which makes distribution more or less even as you can see in the table below.

NodesNextMedian PartitionsMin PartitionsMax PartitionsPartitions Moved
16177537047546.49%
17187086747096.42%
18196696256705.69%
19206345956355.53%
20216025566035.53%
..................
66671821641832.22%
67681801591812.30%
68691771591782.38%
69701741611752.37%
70711721541732.05%

# Functions

No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author