ex_limiter v1.3.12 API Reference
Modules
Configurable, leaky bucket rate limiting. You can define your own storage backend by
implementing the ExLimiter.Storage
behaviour, and configuring it with
Base module for arbitrary rate limiter implementations. Usage is
Plug for enforcing rate limits. The usage should be something like
Token bucket backend written for memcache. Stores the last timestamp and amount in separate keys, and utilizes memcache increments for consumption
Implements the leaky bucket using a fleet of GenServers discoverable via a pg2 group
Responsible for creating and pruning a write optimized ets table for bucket state
The routing mechanism for pg2 shard instances. Currently
it resyncs (by calling :pg2.get_members/1
) on nodeup/nodedown and
on a fixed poll interval
Supervisor for the workers and shard router for the PG2Shard backend
Simple Genserver for implementing the ExLimiter.Storage
behavior for a set
of buckets