Circuit breaker design pattern: Difference between revisions

Content deleted Content added
m Making a
Revised the concurrency description to be phrased in broader terms
Line 17:
==Implementation==
 
TheImplementations of the Circuit Breaker Design Pattern shouldneed beto implementedretain asynchronously.the Thestate reasonof isthe toconnection over a series of requests. It must offload the logic to detect failures from the actual requestrequests. Therefore the state machine within the circuit breaker needs to operate in some sense concurrently with the requests passing through it. One way this can be achieved is [[Asynchrony (computer_programming)|asynchronously]].
 
ThisTherefore requires, Circuitimplementations Breakermay need to use a persistent storage layer, e.g. a network cache such as [[Memcached]] or [[Redis]], or local cache (disk or memory based) to record the availability of what is, to the application, an external service.
 
Circuit Breaker records the state of the external service on a given interval.