Resilience patterns side by side
Retry, circuit breaker, failover and failback solve different failures; production systems combine them.
Pattern | What it does | Trigger | Scope |
|---|
Retry | Re-attempts the same call | Transient failure | Operation |
Circuit breaker | Rejects calls to protect caller | Failure threshold | Dependency |
Failover | Switches to standby replica | Primary failure | Infrastructure |
Failback | Returns to primary after recovery | Primary repaired | Infrastructure |