token-bucket: Rate limiter using lazy bucket algorithm

[ concurrency, gpl, library ] [ Propose Tags ]

This package provides a variant of a Token Bucket or Leaky Bucket rate-limiting algorithm optimised for low overhead.

The rate-limiting variant implemented by this package is heavily inspired by the algorithm described in "Rate Limiting at Webscale: Lazy Leaky Buckets".

Versions [faq],
Change log
Dependencies base (>=4.6 && <4.15) [details]
License GPL-3.0-only
Author Herbert Valerio Riedel
Revised Revision 6 made by HerbertValerioRiedel at 2020-08-26T08:22:07Z
Category Concurrency
Home page
Bug tracker
Source repo head: git clone
Uploaded by HerbertValerioRiedel at 2014-12-06T09:02:34Z
Distributions Debian:, LTSHaskell:, NixOS:, Stackage:
Downloads 2657 total (18 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]





Use optimized getPOSIXTime implementation (faster by roughly one order of magnitude)


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees