polly Questions

2

Solved

I coded a resilience strategy based on retry, and a circuit-breaker policies. Now working, but with a issue in its behavior. I noticed when the circuit-breaker is on half-open, and the onBreak() ev...
Impart asked 12/10, 2021 at 3:50

3

Solved

I consider to use Polly to create policy to log exception and rethrow. I didn't find an existing method that allow it out of the box , but some options that I see are Fallback // Specify a substitu...
Cholla asked 22/3, 2017 at 12:46

1

Solved

Problem stmt : I have a service which fetches result from graphql sometime due to server issue the service might throw 500 error Solution: To resolve the above issue I needed to write a retry logic...
Rundle asked 26/7, 2021 at 15:54

1

Solved

I'm having many timeouts exceptions using Polly Bulkhead policy, this policy helps me to limit the number of concurrent calls that I'm sending to a specific hosts. However It seems that the HttpCli...
Reginiaregiomontanus asked 6/7, 2021 at 8:16

2

Solved

I'm using Polly with .net Core. My ConfigureServices is : private static void ConfigureServices() { var collection = new ServiceCollection(); var timeoutPolicy = Policy.TimeoutAsync<HttpRespon...
Parkerparkhurst asked 4/6, 2021 at 10:14

2

Solved

how to implement retry logic using polly to retry executing a function forever with some delay but handle no exception. the scenario is to get status information repeatedly but there is no expected...
Tuque asked 14/8, 2018 at 19:48

1

An HttpRequestMessage object can only be used one time; future attempts to use the same object throw an exception. I'm using Polly to retry some requests and I'm hitting this issue. I know how I ca...
Skit asked 24/5, 2018 at 20:0

2

Solved

I have an Azure function that makes a http call to a webapi endpoint. I'm following this example GitHub Polly RetryPolicy so my code has a similar structure. So in Startup.cs i have: builder.Servic...
Psychedelic asked 9/3, 2021 at 19:24

1

Solved

By looking at this official documentation it seems that there are basically three types of errors thrown by the MongoDB C# driver: errors thrown when the driver is not able to properly select or ...
Prophesy asked 30/8, 2019 at 16:49

1

Is there a way in Polly to retry all exceptions apart from those which are specified.. for example: var p = Policy .Handle<HttpListenerException>(e => !(e.NativeErrorCode == 1)) .Or<...
Currant asked 20/6, 2018 at 12:47

2

There is an extension method that registers IAccountSearchServiceClient with some policy handlers looks like Polly lib is used public static IServiceCollection AddAccountSearchServiceClient(this IS...
Quass asked 5/1, 2021 at 8:51

3

I just read about Polly library and I need to handle 3 retries when communicating from a desktop agent to a server. Currently I like the exponential backoff. However, I struggle to understand how t...
Scholarship asked 15/7, 2020 at 11:15

2

Solved

I'm just trying out the Polly CircuitBreakerAsync and it's not working as I expect. What am I doing wrong here? I expect the code below to complete and say the circuit is still closed. using Polly;...
Opinion asked 16/11, 2020 at 22:10

4

I'm using Polly to make parallel API calls. The server however can't process more than 25 calls per second and so I'm wondering if there is a way to add a 1s delay after each batch of 25 calls? var...
Takahashi asked 25/10, 2020 at 1:16

1

Solved

I've created a custom library which automatically sets up Polly policies for specific services which depend on HttpClient. This is done using the IServiceCollection extension methods and the typed ...
Falstaffian asked 23/7, 2020 at 14:20

2

Anyone have any idea on why the policy below stop retry after 3 times instead of 10 ? IAsyncPolicy<HttpResponseMessage> httpWaitAndRetryPolicy = Policy.HandleResult<HttpResponseMessage&gt...
Stomato asked 9/7, 2020 at 1:58

1

Solved

I am very new to polly. I did a bit of research but still could not find out if/how it is possible to use Polly in an elegant way to use a chached value only if a request fails. Example: Service A...
Enplane asked 23/3, 2020 at 14:50

2

Intro: I am building a single-node web crawler to simply validate URLs are 200 OK in a .NET Core console application. I have a collection of URLs at different hosts to which I am sending requests ...
Sibling asked 13/7, 2019 at 20:53

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 have the following issue. I have a proxy set. If a request via proxy very slow or has crashed I would like to try again without proxy. For setting proxy I have the following code in the Startup...
Clearway asked 5/11, 2019 at 9:32

1

Solved

I'm new to Polly so there may be a completely different approach compared to the one I'm trying to do and that would be perfectly OK. My goals are this: token may be canceled due to timeout or req...
Taille asked 4/9, 2019 at 4:15

1

Solved

I have a Typed Client which i have configured in the services and i am using Polly to make retries for transient faults. Aim: I want to make use of Polly to implement refresh token, whenever there...
Aggravation asked 10/7, 2019 at 17:52

0

Following from Set a default Polly policy with Flurl How do I use Polly with Flurl without the factory? This only calls it once string s = await Policy .Handle<HttpRequestException> () ....
Externalize asked 17/4, 2019 at 0:49

1

Solved

I would like to perform a certain operation, and if it fails three times return null. Something like this in Polly would be perfect: var results = await Policy<IList<Value>> .Handle&l...
Glyptograph asked 22/3, 2019 at 12:29

1

Solved

I know I can specify the list of HTTP error codes (e.g. 408, 502, 503, etc. ) I would like to get retried using Polly, but what is the list of these codes that would be retried by default if none i...
Whoredom asked 14/2, 2019 at 22:8

© 2022 - 2024 — McMap. All rights reserved.