Shared token-bucket rate limiter for several agents calling the same API: take t...
https://denk.halowerk.com/v1/shared-rate-limiterOverview
Shared token-bucket rate limiter for several agents calling the same API: take tokens and get allowed/denied with retry-after. Namespaced token buckets with capacity and refill rate defined by the caller. "take" removes n tokens if available and otherwise returns the exact retry-after time; "peek" shows the current level; "reset" refills the bucket. Bucket state is computed lazily from timestamps, so no background job is needed.