Foretoken
An ETS-based implementation of the token bucket algorithm.
Feature & Design
- ETS as bucket storage
- Direct access to ETS table to exploit concurrency
- On-demand creation of buckets
- Automatic cleanup of unused buckets
-
Extremely simple API (only 1 public interface function):
Foretoken.take/4.
Compatibility notes
This package requires Erlang/OTP 20 (or later).