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: GitHub - Logflare/phoenix-rate-limiter-example: An example of distributed rate limiting with Phoenix using PubSub and ETS. · GitHub

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.

15 Likes

Added a wrk example and some styling!!

https://p195.p4.n0.cdn.getcloudapp.com/items/nOuknR0B/Screen%20Shot%202020-08-15%20at%206.35.43%20AM.png?v=e8ea68ba33ff0093d9f5f01a55a1a2a4

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.