Skip to content

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 FallbackConfig

Properties ​

PropertyModifiersTypeDescription
durationnumberFallback window in seconds.
pointsnumberConsumption points available per fallback window.