/rate-limiter

This repo aims to implement a distributed rate limiter, using Redis

Primary LanguageKotlin

Rate Limiter

This repo aims to implement a distributed rate limiter, using Redis. This implementation is a lazy copy for Leonardo Ferreira's implementation, based on this post.

Problem description

Sometimes you need to control some kind of throughput for a certain window time. For example, you can't call some API more than 10 times for second.

We have some options to do this on a single instance application (resilient4j), but today is usual to have more than one instance of the same application running on a cluster.

This project implement a solution using the Redis capabilities

Other options

References