Skip to main content

Module bucket

Module bucket 

Source
Expand description

Token bucket per provider API, so a burst of wakes never exceeds an API quota (Kubernetes API priority, ECS RunTask 20/s, Fly 1 req/s per action).

Structs§

TokenBucket
A token bucket: burst tokens, refilled at per_second. Uses tokio’s clock, so tests with a paused clock are deterministic.