RateLimiterMan.LeakyBucket (Rate Limiter Man v0.2.1)

View Source

A leaky-bucket rate limiter that processes requests at a fixed rate (e.g. 1 request per second).

Required config keys

  • :

Optional config keys

  • :rate_limiter_logger_level - Determines what type of Logger statement to generate when a request is pushed to or popped from the queue. (default: nil)
    • Examples: nil (Logging disabled), :debug, :info

Warning

The log statements may contain sensitive data (e.g. API keys). There is currently no way of modifying the contents of the Logger statement.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)