Rate Limit (Beta)
Rate limiting protects backend services. It implements quota management used to avoid cascading failures or to spare resources.
| Block name | Context | Label |
|---|---|---|
beta_rate_limit | named backend block | no label |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
mode | string | "wait" | If |
per_period | number | - | Defines the number of allowed backend requests in a period. |
period | duration | - | Defines the rate limit period. |
period_window | string | "sliding" | Defines the window of the period. A |
Duration
Example: timeout = "300s"
| Duration units | Description |
|---|---|
ns | nanoseconds |
us (or ยตs) | microseconds |
ms | milliseconds |
s | seconds |
m | minutes |
h | hours |