nestjs-resilience
Version:
A module for improving the reliability and fault-tolerance of your NestJS applications
13 lines (12 loc) • 509 B
TypeScript
import { TimeoutOptions } from './timeout-options.interface';
import { CacheOptions } from './cache-options.interface';
import { FallbackOptions } from './fallback-options.interface';
export interface CircuitBreakerOptions {
requestVolumeThreshold?: number;
sleepWindowInMilliseconds?: number;
rollingWindowInMilliseconds?: number;
errorThresholdPercentage?: number;
timeoutInMilliseconds?: TimeoutOptions;
cachedTimeoutInMilliseconds?: CacheOptions;
fallback?: FallbackOptions;
}