Module selection

Source
Expand description

Backend selection interfaces and algorithms

Modules§

algorithms
Implementation of algorithms for weighted selection
consistent
Consistent Hashing
weighted
Weighted Selection

Structs§

UniqueIterator
An iterator which wraps another iterator and yields unique items. It optionally takes a max number of iterations if the wrapped iterator never returns.

Traits§

BackendIter
An iterator to find the suitable backend
BackendSelection
BackendSelection is the interface to implement backend selection mechanisms.
SelectionAlgorithm
SelectionAlgorithm is the interface to implement selection algorithms.

Type Aliases§

Consistent
Consistent Ketama hashing on weighted backends
FNVHash
FNV hashing on weighted backends
Random
Random selection on weighted backends
RoundRobin
Round robin selection on weighted backends