sharedCircuitState
sharedCircuitState(
options):CircuitBreakerExtension
Defined in: src/circuit-extensions.ts:90
Shares the breaker’s state with other instances (servers, processes) through a store, e.g. RedisCircuitStateStore:
one instance seeing the dependency fail opens the circuit for all of them.
addCircuitBreaker({ extensions: [sharedCircuitState({ store, key: 'payments' })] })