Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mosuka/rendezvous

Weighted Rendezvous Hashing
https://github.com/mosuka/rendezvous

consistent-hashing go golang rendezvous-hashing weighted

Last synced: 3 months ago
JSON representation

Weighted Rendezvous Hashing

Awesome Lists containing this project

README

        

# Weighted Rendezvous Hashing

An alternative to Consistent Hashing. Evenly distributes load on node removal.

```go
ring := rendezvous.New()
for _, s := range serversAndWeights {
ring.AddWithWeight(s.Addr, s.Weight)
}

addr := ring.Lookup("some_client_addr")
```