Circuit breaker design pattern: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 9:
==Common Uses==
 
Assume that an application is 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.