# Circuit breaking and degradation

### Interceptor name

circuitBreaker

### Supported protocols

* All

### Features

* Circuit breaking/Degradation, fast fail

### Configuration

```yaml
asjard:
  ## Interceptor related configuration
  interceptors:
    ## Client interceptor
    client:
      ## Circuit breaker related configuration
      ## Services
      ## https://github.com/afex/hystrix-go/blob/master/hystrix/settings.go#CommandConfig
      ## Priority methods -> service -> default
      circuitBreaker:
        ## Default configuration
        ## Timeout, in milliseconds
        # timeout: 1000
        # max_concurrent_requests: 1000
        # request_volume_threshold: 20
        # sleep_window: 5000
        # error_percent_threshold: 50
        ## Method priority
        ## protocol://service/method
        ## protocol://service
        ## protocol:///method
        ## protocol
        ## //service/method
        ## ///method
        ## //service
        methods:
          - name: grpc://servicesName/method
            timeout: 1000
          - name: //serviceName
```
