Browse Source

Increased number of retries

Increased number of fails before open circuit
pull/133/head
Ramón Tomás 7 years ago
parent
commit
3a8e68abb4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Web/WebMVC/Services/Utilities/HttpApiClientWrapper.cs

+ 2
- 2
src/Web/WebMVC/Services/Utilities/HttpApiClientWrapper.cs View File

@ -32,7 +32,7 @@ namespace WebMVC.Services.Utilities
.Handle<HttpRequestException>()
.CircuitBreakerAsync(
// number of exceptions before breaking circuit
3,
5,
// time circuit opened before retry
TimeSpan.FromMinutes(1),
(exception, duration) => {
@ -52,7 +52,7 @@ namespace WebMVC.Services.Utilities
.Handle<HttpRequestException>()
.WaitAndRetryAsync(
// number of retries
3,
5,
// exponential backofff
retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt)),
// on retry


Loading…
Cancel
Save