Skip to content

An ETS-based implementation of the token bucket algorithm

License

Notifications You must be signed in to change notification settings

skirino/foretoken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foretoken

An ETS-based implementation of the token bucket algorithm.

Hex.pm Coverage Status

Feature & Design

  • Simplest possible API (only 1 public interface function: Foretoken.take/5)
  • ETS as concurrently accessible bucket storage
  • Bucket lifecycle management
    • On-demand creation of buckets (whch can be disabled)
    • Automatic cleanup of unused buckets

Compatibility notes

This package requires Erlang/OTP 20 (or later).

About

An ETS-based implementation of the token bucket algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages