Content deleted Content added
m Dating maintenance tags: {{Why}} |
→Performance implication: Imho, the claim is obvious - I don't understand who can ask "why", but explained it nevertheless. |
||
Line 25:
==Performance implication==
While it's safe to say that the benefits outweigh the consequences, implementing Circuit Breaker will negatively affect the performance. 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.
|