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: Golimit – Ringpop-based distributed and decentralized rate limiter

53 pointsby realrockeralmost 7 years ago

6 comments

freeman478almost 7 years ago
Thanks, looks quite useful.<p>However it seems based on <a href="https:&#x2F;&#x2F;github.com&#x2F;uber&#x2F;ringpop-go" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;uber&#x2F;ringpop-go</a> which is marked as no longer active...<p>What are you using to implement rate limiting ?
评论 #17180129 未加载
评论 #17177895 未加载
chatmastaalmost 7 years ago
If I’m reading this right, is it possible to use the sidecar technique to install this along keep my existing load balancer architecture? For example, if every server has an haproxy frontend, and I install this sidecar on each server, how do I interact with it from haproxy?<p>Also, there was an HN thread last year from stripe with a good discussion of distributed rate limiting: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13997029" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13997029</a>
评论 #17179883 未加载
ashish6111988almost 7 years ago
The project looks cool. Just want to understand how counter syncing works here, have you implemented CRDTs? Since, everything is in RAM, if service goes down, all counters&#x27; data will be lost. I believe, in case of API gateways some kind of durability is needed, if we need to rate limit based on consumer keys.
评论 #17187320 未加载
aaron42netalmost 7 years ago
Skimming the bucket code, it appears that the rate-limiting information is stored in a map. It doesn&#x27;t appear to implement an LRU or attempt to clean up stale entries.<p>If I feed this user-supplied keys such as IP address or cookies, doesn&#x27;t this mean it will grow without bound?
评论 #17180040 未加载
评论 #17179464 未加载
wmfalmost 7 years ago
I wonder if this could be extended to implement &quot;impossible&quot; distributed least connections load balancing.
评论 #17180682 未加载
评论 #17180225 未加载
jdwyahalmost 7 years ago
Also biased, but if you need the functionality and don’t want to run it yourself there is <a href="https:&#x2F;&#x2F;www.prefab.cloud&#x2F;documentation&#x2F;basic_rate_limits" rel="nofollow">https:&#x2F;&#x2F;www.prefab.cloud&#x2F;documentation&#x2F;basic_rate_limits</a>