Simple Fixed-window Rate Limiter With Redis

from blog Blog on hjr265.me, | ↗ original
A while ago I needed a very quick rate limiter implementation. The application I was working on was already using Redis. Fixed-window rate limiting: This is a straightforward algorithm that counts the number of requests received within a fixed time window, such as one minute. Once the maximum number of requests is reached, additional requests are...