rate_limiter v0.1.0 RateLimiter
A high performance rate limiter implemented on top of erlang :atomics
which uses only atomic hardware instructions without any software level locking.
As a result RateLimiter is ~20x faster than ExRated
and ~80x faster than Hammer
.
Link to this section Summary
Link to this section Functions
Link to this function
get(id)
Link to this function
hit(rate_limiter, hits \\ 1)
Link to this function
hit(id, scale, limit, hits \\ 1)
Link to this function
init()
Link to this function
new(scale, limit)
Link to this function
new(id, scale, limit)
Link to this function