hashring
hashring copied to clipboard
Consistent hashing "hashring" implementation in golang (using the same algorithm as libketama)
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.