What to watch
Select the payments API and press Crash in the inspector. Once half the calls in a four second window fail, the breaker opens and the rest fail in microseconds instead of waiting out a timeout. After three seconds it lets a few test calls through, and closes again only if they succeed.What it is made of
Under load
Measured by running this design through the simulator at multiples of its own offered rate of 100 requests a second. Twenty seconds of simulated time, one fixed seed, so the same numbers come out every time.This design holds 150 requests a second with 0% errors. At 200 it is losing 20% of them.
Open this example
Load Circuit breaker from the Examples menu and drag the traffic slider yourself.