# Distributed Rate Limiting

**URL:** <https://forum.elixirforum.com/t/distributed-rate-limiting/33738>\
**Category:** Discussions\
**Tags:** distributed-systems, phoenix\
**Created:** [August 14, 2020, 1:42pm UTC](https://forum.elixirforum.com/t/distributed-rate-limiting/33738 "2020-08-14T13:42:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chasers](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/chasers/32/14188_2.png) [@chasers](https://forum.elixirforum.com/u/chasers)\
**Post date:** [August 14, 2020, 1:42pm UTC](https://forum.elixirforum.com/t/distributed-rate-limiting/33738/1 "2020-08-14T13:42:18Z")

</div>

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](https://github.com/Logflare/phoenix-rate-limiter-example)

You can play with it at: [https://phx-limit.gigalixirapp.com/](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.

---

<div class="post-metadata">

**Author:** ![chasers](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/chasers/32/14188_2.png) [@chasers](https://forum.elixirforum.com/u/chasers)\
**Post date:** [August 15, 2020, 1:37pm UTC](https://forum.elixirforum.com/t/distributed-rate-limiting/33738/2 "2020-08-15T13:37:16Z")

</div>

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](https://p195.p4.n0.cdn.getcloudapp.com/items/nOuknR0B/Screen%20Shot%202020-08-15%20at%206.35.43%20AM.png?v=e8ea68ba33ff0093d9f5f01a55a1a2a4)

---

<div class="post-metadata">

**Author:** ![egze](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/egze/32/13522_2.png) [@egze](https://forum.elixirforum.com/u/egze)\
**Post date:** [August 15, 2020, 3:42pm UTC](https://forum.elixirforum.com/t/distributed-rate-limiting/33738/3 "2020-08-15T15:42:16Z")

</div>

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

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