Fixed window counter rate limiter with Redis & Java
About
Traffic spikes happen. The right rate limiter keeps your app calm under pressure. In this video, Raphael De Lio breaks down the fixed window counter—an elegant, reliable way to control API traffic with Redis. Learn how the algorithm works, how to use Redis commands like INCR and EXPIRE to manage request flow, and how to build and test a clean Java implementation with Jedis. You’ll also see how to handle real-world scenarios like multiple clients, window resets, and request limits.
7 minutes
Key topics
How the fixed window counter algorithm works
Using Redis commands like INCR and EXPIRE to manage counters
Building and testing a Java implementation with Jedis
Scenarios to validate behavior, like multiple clients, window resets, and request limits