shesmu

Rate Limit Throttling Plugin

This plugin allows limiting the rate of contacting a service using a token bucket. To create a bucket that throttles service, create a file service.ratelimit as follows:

{
  "capacity": 1000,
  "delay": 50
}

where capacity is the maximum number of tokens that can be held in the bucket and delay is the number of milliseconds to generate a new token.