April 2019
Intermediate to advanced
360 pages
9h 17m
English
The circuit-breaker design pattern is based on the same concept as an electrical circuit. As you can see in the following diagram, when the circuit is open, the flow of electricity is impeded and cannot flow between the two points—the power source and light bulb in our example. When the circuit is closed, electricity is unimpeded and the light bulb can receive power:

The circuit-breaker design pattern is modeled after electrical circuits. This design pattern has three possible states:
Read now
Unlock full access