iundarigun / rate-limiter

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:Kotlin 90.5%Language:Lua 9.5%