Show HN: A Golang Package for Consistent Hashing with Bounded Loads (github.com) 50 points by khalidlafi 9y ago ↗ HN
[–] khalidlafi 9y ago ↗ Hi, i'm the author of this package.I wrote it because i couldn't implement Consistent Hashing With Bounded Loads over any pre-existing golang consistent hashing packages in a clean way.Here's the ugly code that made me into doing it: https://github.com/lafikl/liblb/blob/c9c4544834ac7ae7fa6a9cd... [–] amerine 9y ago ↗ Thanks for sharing!
[–] tyingq 9y ago ↗ Initially confused by the title...I thought "loads" was maybe the payload data being hashed.I see now though...it's an approach to use a hash to decide which destination host to select...from a group of hosts used for load balancing. [–] kkirsche 9y ago ↗ Sounds like hashing used in network protocols for things like LACP
4 comments
[ 3.4 ms ] story [ 18.8 ms ] threadI wrote it because i couldn't implement Consistent Hashing With Bounded Loads over any pre-existing golang consistent hashing packages in a clean way.
Here's the ugly code that made me into doing it: https://github.com/lafikl/liblb/blob/c9c4544834ac7ae7fa6a9cd...
I see now though...it's an approach to use a hash to decide which destination host to select...from a group of hosts used for load balancing.