What is the Circuit Breaker pattern, and how do you implement it?
The Circuit Breaker pattern is a design pattern used to prevent a system from repeatedly
trying to perform an action that is likely to fail, allowing it to "break" and avoid causing more
damage. It helps improve system resilience by detecting failures early and preventing
cascading failures.
Implementation: