Circuit breaker design pattern: Difference between revisions

Content deleted Content added
External links: change article to Csharp
No edit summary
Line 7:
Assume that your application connects to a [[database]] 100 times per second and the database fails. You do not want to have the same error reoccur constantly. You 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.
 
[[Circuit breaker]] detects failures and prevents the application from trying to perform the action that is doomed to fail (until its safe to retry).