logoalt Hacker News

boesboestoday at 7:52 AM1 replyview on HN

I’ve done moving window rate limiting using redis to do atomic rate calculations etc.

That requires some weirdness


Replies

alt227today at 8:07 AM

> moving window rate limiting

So does that mean you are tracking how many times data is being entered into redis, and rejecting it if the entry rate is too high?

Why would you not track this before, at the point of calculating the data to enter into redis, rather than querying redis to see how much data is entered in a given timeframe?

Again, genuinely curious as to the reason for architectural decisions.

show 1 reply