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.

Fair: A Go library for serving resources fairly

213 pointsby ngaut8 months ago

7 comments

ignoramous8 months ago
&gt; <i>Since the state is stored in a multi-level Bloom Filter style data structure, the memory needed is constant and does not scale with the number of clients.</i><p>Constant memory, but those hashes will take up CPU cycles. If you&#x27;re running a workload that completes sub 20 milliseconds, these cycles spent hashing may not be worth it over, say, a <i>constant-time</i> admission control like token bucket.
评论 #41555809 未加载
评论 #41567562 未加载
评论 #41556094 未加载
tazu8 months ago
Does anyone have some real-world use cases for something like this? The algorithm is cool but I&#x27;m struggling to see where this is applicable.
评论 #41555319 未加载
评论 #41575957 未加载
评论 #41555838 未加载
评论 #41558445 未加载
nstateful8 months ago
Very interesting and looking forward to trying this. I am a big fan of SFB for this type of stuff but haven&#x27;t seen anything in distributed space that&#x27;s beyond a science project. Would be great if I can use it on my 10k+ user web site.
JensRantil8 months ago
I coded up something like Fair a couple 1-2 years ago: <a href="https:&#x2F;&#x2F;github.com&#x2F;JensRantil&#x2F;conc">https:&#x2F;&#x2F;github.com&#x2F;JensRantil&#x2F;conc</a> It&#x27;s alpha software, but maybe interesting to someone don&#x27;t know.
roboben8 months ago
Shouldn’t this be built into a queue somehow? I’d love to see a queuing solution like SQS but has a built in fairness, where you can fully utilize a capacity but as soon as, let’s say customers compete on resources, some fairness kicks in. Is there anything like that?
评论 #41568439 未加载
salomonk_mur8 months ago
Why would you learn and use this over typical load-balancing solutions like K8S? Honest question.
评论 #41558492 未加载
评论 #41555377 未加载
评论 #41556124 未加载
AnnaMere8 months ago
Extremely interesting and valuable