Circuit breaker design pattern: Difference between revisions

Content deleted Content added
Remove link to PHP package which just retries failed operations; no ability to record the failure state and prevent further attempts by other tasks, the defining characteristic of the Circuit Breaker pattern
Payment mobile Egypt Vodafone cash
Tags: Visual edit Mobile edit Mobile web edit
Line 9:
==Common uses==
 
Assume that an application connects to a [[database]] 100 times per second and the database fails. The application designer does not want to have the same error reoccur constantly. They also want to handle the error quickly and gracefully without waiting for [[TCP connection]] timeout.
 
Generally Circuit Breaker can be used to check the availability of an external service. An external service can be a database server or a web service used by the application.