Improving your C# Skills
上QQ阅读APP看书,第一时间看更新

Reactive policies

According to the reactive policy, we should instantly retry the service request if the request fails on its first attempt. To implement the reactive policy, we can use the following patterns:

  • Retry: Retries immediately when the request fails
  • Circuit breaker: Stops all requests to a service in a faulted state
  • Fallback: Returns a default response if the service is in a faulted state