The Circuit Breaker pattern
The Circuit Breaker pattern prevents the system from repeatedly trying to execute an operation that is likely to fail. Implementing the Circuit Breaker pattern in concert with the Retry pattern helps prevent infinite retries.
When the Circuit Breaker is implemented, the system stops the retry attempts after a defined number of retries. The number of retries can depend on the type of operation or the type of failure encountered. For instance, the system may retry the call three times in case of a 408 request timeout HTTP error code and zero times in case of a 401 unauthorized HTTP error code.
To read more about the Circuit Breaker pattern and possible implementation approaches, visit the following link:
https://docs.microsoft.com/en-us/azure/architecture/patterns/circuit-breaker ...