TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A Golang Package for Consistent Hashing with Bounded Loads

50 pointsby khalidlafialmost 8 years ago

2 comments

khalidlafialmost 8 years ago
Hi, i&#x27;m the author of this package.<p>I wrote it because i couldn&#x27;t implement Consistent Hashing With Bounded Loads over any pre-existing golang consistent hashing packages in a clean way.<p>Here&#x27;s the ugly code that made me into doing it: <a href="https:&#x2F;&#x2F;github.com&#x2F;lafikl&#x2F;liblb&#x2F;blob&#x2F;c9c4544834ac7ae7fa6a9cd06907994b83b1b418&#x2F;bounded&#x2F;bounded.go#L171" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lafikl&#x2F;liblb&#x2F;blob&#x2F;c9c4544834ac7ae7fa6a9cd...</a>
评论 #14534348 未加载
tyingqalmost 8 years ago
Initially confused by the title...I thought &quot;loads&quot; was maybe the payload data being hashed.<p>I see now though...it&#x27;s an approach to use a hash to decide which destination host to select...from a group of hosts used for load balancing.
评论 #14531959 未加载