hashring icon indicating copy to clipboard operation
hashring copied to clipboard

Consistent hashing "hashring" implementation in golang (using the same algorithm as libketama)

Results 5 hashring issues
Sort by recently updated
recently updated
newest added

It seems from the code that the ring is not thread safe to modify and use at the same time, right? Like one goroutine add/remove node, while other goroutines call...

`Hashring.generateCircle() `is using `sort.Sort(data Interface)` to sort `sortedkeys`, but this function is not guaranteed to be stable. Is this a potential risk that, with some very edge cases, (for example,...

Using the Slices library to replace sort.Sort and sort.Search should theoretically improve sorting and search performance.