Skip to content

Commit 3a8e68a

Browse files
committed
Increased number of retries
Increased number of fails before open circuit
1 parent ca02961 commit 3a8e68a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Web/WebMVC/Services/Utilities/HttpApiClientWrapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private Policy CreateCircuitBreakerPolicy()
3232
.Handle<HttpRequestException>()
3333
.CircuitBreakerAsync(
3434
// number of exceptions before breaking circuit
35-
3,
35+
5,
3636
// time circuit opened before retry
3737
TimeSpan.FromMinutes(1),
3838
(exception, duration) => {
@@ -52,7 +52,7 @@ private Policy CreateRetryPolicy()
5252
.Handle<HttpRequestException>()
5353
.WaitAndRetryAsync(
5454
// number of retries
55-
3,
55+
5,
5656
// exponential backofff
5757
retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt)),
5858
// on retry

0 commit comments

Comments
 (0)