Circuit breaker Flashcards

1
Q

Reliability

A

Circuit Breaker

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Circuit Breaker: problem

A

How to prevent a network or service failure from cascading to other services?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Circuit Breaker: solution

A

A service client should invoke a remote service via a proxy that functions in a similar fashion to an electrical circuit breaker. When the number of consecutive failures crosses a threshold, the circuit breaker trips, and for the duration of a timeout period all attempts to invoke the remote service will fail immediately. After the timeout expires the circuit breaker allows a limited number of test requests to pass through. If those requests succeed the circuit breaker resumes normal operation. Otherwise, if there is a failure the timeout period begins again.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Circuit Breaker: result benefits

A

Services handle the failure of the services that they invoke

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Circuit Breaker: result issues

A

It is challenging to choose timeout values without creating false positives or introducing excessive latency.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Circuit Breaker: related

A

The Microservice Chassis might implement this pattern
An API Gateway will use this pattern to invoke services
A Server-side discovery router might use this pattern to invoke services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly