retry-logic Questions

2

Solved

Problem Using HttpClient from Java 11 (JDK, not Apache), how can I retry requests? Lets say I want to retry a request up to 10 times if it did not return a status code of 200 or threw an exception....
Michal asked 15/7, 2020 at 9:7

1

Solved

I am trying to create a solution with polly where I request an other api. I have a list of URLs to multiple instances of the same service. I want that when the first request failes, an other shou...
Fibroid asked 29/5, 2020 at 11:1

1

I'm implementing Polly to retry requests in my C# web app. My sample code is included in this post. The code works as expected but the last parameter passed to CreateFile() (currently hard-coded as...
Bryson asked 20/12, 2018 at 23:49

2

Solved

I am trying to convert my existing function to Polly Retry policy public static T Execute<T>(Func<T> getTask) where T : Task { var retryCount = 3; while (retryCount-- > 0) { try...
Trapper asked 12/6, 2018 at 12:46

1

Following are the classes used to implement retry logic TestRetry Class: public class TestRetry implements IRetryAnalyzer { int counter=0; int retryLimit=2; @Override public boolean retry(IT...
Razo asked 8/5, 2018 at 20:33

2

I'm fairly new to iOS/Swift development and I'm working on an app that makes several requests to a REST API. Here's a sample of one of those calls which retrieves "messages": func getMessages() { ...
Jabon asked 19/10, 2017 at 15:5

1

Is it possible to retry based on certain conditions? If I annotate with Retryable, it will retry based on some Exceptions but I want to retry if that exception is caught and the corresponding condi...
Adagietto asked 10/10, 2017 at 14:49

3

Solved

When the code is waiting for some condition in which delay time is not deterministic, it looks like many people choose to use exponential backoff, i.e. wait N seconds, check if the condition satisf...

1

I have to integrate with external service that requires access token to be sent with each requests. Access token has a short expiration time (only a few hours). I've decided to use access token in ...
Erny asked 31/7, 2017 at 9:36

© 2022 - 2025 — McMap. All rights reserved.