1
0
mirror of https://github.com/tmrts/go-patterns.git synced 2024-11-29 00:25:31 +03:00
go-patterns/stability/circuit_breaker.md

7 lines
348 B
Markdown
Raw Normal View History

2016-09-04 20:52:42 +03:00
# Circuit Breaker Pattern
The [circuit breaker design pattern](https://en.wikipedia.org/wiki/Circuit_breaker_design_pattern) is used to detect failures and encapsulates logic of preventing a failure to reoccur constantly.
# Implementation and Example
An example of implementation and usage can be found in [circuitbreaker.go](circuitbreaker.go).