Hacker News new | ask | show | jobs
by jdwyah 3109 days ago
One thing that RateLim.it uses to its advantage is calculating the “nextPossiblePass” for each limit. This allows clients to cache forever that something is over the limit until time X and not have to make another request.

In the bursty case this let’s clients effectively short circuit and protect the system.

Disclaimer: I work on https://www.ratelim.it/documentation/basic_rate_limits