Increased number of retries
Increased number of fails before open circuit
This commit is contained in:
parent
ca029618e6
commit
3a8e68abb4
@ -32,7 +32,7 @@ namespace WebMVC.Services.Utilities
|
|||||||
.Handle<HttpRequestException>()
|
.Handle<HttpRequestException>()
|
||||||
.CircuitBreakerAsync(
|
.CircuitBreakerAsync(
|
||||||
// number of exceptions before breaking circuit
|
// number of exceptions before breaking circuit
|
||||||
3,
|
5,
|
||||||
// time circuit opened before retry
|
// time circuit opened before retry
|
||||||
TimeSpan.FromMinutes(1),
|
TimeSpan.FromMinutes(1),
|
||||||
(exception, duration) => {
|
(exception, duration) => {
|
||||||
@ -52,7 +52,7 @@ namespace WebMVC.Services.Utilities
|
|||||||
.Handle<HttpRequestException>()
|
.Handle<HttpRequestException>()
|
||||||
.WaitAndRetryAsync(
|
.WaitAndRetryAsync(
|
||||||
// number of retries
|
// number of retries
|
||||||
3,
|
5,
|
||||||
// exponential backofff
|
// exponential backofff
|
||||||
retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt)),
|
retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt)),
|
||||||
// on retry
|
// on retry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user