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

https://github.com/rural-panda/bestring

A simple and fast consistent hash-ring for go
https://github.com/rural-panda/bestring

avl consistent consistent-hash-algorithm consistent-hashing distributed distributed-systems go hashring ring

Last synced: 28 days ago
JSON representation

A simple and fast consistent hash-ring for go

Awesome Lists containing this project

README

          

### BestRing
---

#### Target
provide a consistent hash-ring with high performance and high stability :)

#### Example

```go

// initialization
b := bestring.NewBestRing(vNodeNumber)

// add a real server
b.AddNode(serverAddress)

// find a suitable server
serverHits := b.GetNode(clientRequestKey)

```

#### Todo
1. provide complete features
2. improve performance
3. provide stability report