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
- Host: GitHub
- URL: https://github.com/rural-panda/bestring
- Owner: rural-panda
- Created: 2019-08-19T01:09:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-25T13:18:23.000Z (over 6 years ago)
- Last Synced: 2024-05-11T07:33:20.059Z (over 1 year ago)
- Topics: avl, consistent, consistent-hash-algorithm, consistent-hashing, distributed, distributed-systems, go, hashring, ring
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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