Distributed Rate Limiting

Someone here was asking about rate limiting across a cluster. I’ve pulled out how we do it at Logflare into an example project: https://github.com/Logflare/phoenix-rate-limiter-example

You can play with it at: https://phx-limit.gigalixirapp.com/

And you can hear me talk about it at ElixirConf in September!

Would love feedback on the code / supervision tree too.

13 Likes

Added a wrk example and some styling!!

4 Likes

Could you please write a high level description of your design? :slight_smile: A detailed blog post would be even better.

Thanks for posting. Even without a description I will study it later.