Awesome Elixir
Read post

Distributed rate limiter with HRW in Elixir

A practical guide to building a cluster-aware rate limiter in Elixir without Redis, using HRW (Highest Random Weight / Rendezvous Hashing) to route rate limit checks to the correct node. The approach uses the Hammer library with an ETS backend and a GenServer that delegates requests to the node responsible for a given key. HRW is presented as a simpler, stateless alternative to ExHashRing for small clusters (under 10 nodes), with minimal key reassignment when nodes join or leave. The pattern generalizes to distributed caching and ephemeral event tracking as well.

    #elixir#distributed-systems
Aug 05•5m read time•From jola.dev
Post cover image
58 Impressions
Awesome Elixir's image
Awesome Elixir

Awelix emerges as a beacon in the ever-evolving landscape of web development, offering a treasure tr...

214 Followers

•

1.1K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard