rate_limiter v0.2.1 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

hit(rate_limiter, hits \\ 1)

Link to this function

hit(id, scale, limit, hits \\ 1)

Link to this function

inspect_bucket(id)

Link to this function

new(scale, limit)

Link to this function

new(id, scale, limit)

Link to this function

reset(rate_limiter)

Link to this function

wait(rate_limiter, hits \\ 1)