Circuit breaker design pattern: Difference between revisions

Content deleted Content added
Payment mobile Egypt Vodafone cash
Tags: Visual edit Mobile edit Mobile web edit
Line 27:
==Performance implication==
 
While it's safe to say that the benefits outweigh the consequences, implementing Circuit Breaker will negatively effectaffect storage space, application complexity, and computational cost to the executing application. This is because it adds additional code into the execution path to check for the state of the circuit. This can be seen in the PHP example below, where checking APC for the database status costs a few extra cycles. Also, running the circuit breaker code itself consumes resources on the system where it is running, thus leaving less execution power for "real" applications.{{why|date=January 2021}}
 
By how much depends on the storage layer used and generally available resources. The largest factors in this regard are the type of cache, for example, disk-based vs. memory-based and local vs. network.