Skip to content

Commit 9d5b12a

Browse files
committed
missing
1 parent 0ea6238 commit 9d5b12a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
export type CircuitBreakerConfiguration = {
2+
/**
3+
* Percentage after what the circuit breaker should kick in.
4+
* Default: 50
5+
*/
6+
errorThresholdPercentage: number;
7+
/**
8+
* Count of requests before starting evaluating.
9+
* Default: 5
10+
*/
11+
volumeThreshold: number;
12+
/**
13+
* After what time the circuit breaker is attempting to retry sending requests in milliseconds
14+
* Default: 30_000
15+
*/
16+
resetTimeout: number;
17+
};
18+
19+
export const defaultCircuitBreakerConfiguration: CircuitBreakerConfiguration = {
20+
errorThresholdPercentage: 50,
21+
volumeThreshold: 10,
22+
resetTimeout: 30_000,
23+
};

0 commit comments

Comments
 (0)