Home > @opengovsg/rate-limit > FallbackConfig
FallbackConfig interface
Fallback allowance for the in-memory limiter used as insurance during a Redis outage, and as the sole limiter when no client is configured. Both fields are required when overriding the factory's built-in fallback.
Signature:
typescript
export interface FallbackConfigProperties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| duration | number | Fallback window in seconds. | |
| points | number | Consumption points available per fallback window. |