Skip to content

rural-panda/bestring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BestRing


Target

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

Example

// 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