Jump to content

Circuit breaker design pattern

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ejsmont.artur (talk | contribs) at 10:55, 17 July 2010 (initial short description). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Circuit breaker is a design pattern in modern software development.

It is a component that encapsulates logic of preventing a failure to reoccur constantly.

If 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 situation quickly and gracefully.

Circuit breaker is used to detect failure and stop trying to perform action that is doomed to fail until its safe to retry.