Home > @opengovsg/rate-limit > BurstConfig
BurstConfig interface
A short-lived allowance layered on top of the steady window to absorb legitimate spikes, such as a page load firing several parallel API calls.
Signature:
typescript
export interface BurstConfigProperties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| duration | number | Burst window in seconds. | |
| points | number | Consumption points available per burst window. |