Questions tagged [retrypolicy]

Provides the base implementation of the retry mechanism for unreliable actions and transient conditions when accessing Sql Azure.

101 questions
1
vote
2 answers

http retry for Request Timeout (408)

Using hashicorp go-retryablehttp library (https://github.com/hashicorp/go-retryablehttp) It retries automatically for all 5xx code: retryablehttp performs automatic retries under certain conditions. Mainly, if an error is returned by the client…
sergionni
  • 13,290
  • 42
  • 132
  • 189
1
vote
1 answer

How to add retry options (retry policy) to publisher/subscriber client which uses Azure Service Bus Java SDK?

I'm testing retry options for Azure Service Bus publisher/subscriber client because after a sudden connection failure the client will not retry to send or receive messages. Following is the code for publisher client sendMessage() method and I have…
1
vote
1 answer

Polly synchronous Retry

I just be familiar with Polly and I'm trying to start with a simple Retry mechanism. Here's the code: static void Main(string[] args) { Policy .Handle() .WaitAndRetry(5, retryAttempt =>…
ABS
  • 2,626
  • 3
  • 28
  • 44
1
vote
1 answer

Lambda and SQS Retry Strategy

Looking for input on optimizing a lambda retry strategy using SQS. Currently I have a Lambda function that is invoked by an S3 PUT operation which posts to a third party web hook and I'm trying to account for possible errors/500s from said webhook.…
luxo
  • 378
  • 1
  • 4
  • 11
1
vote
0 answers

It this a good option to use SqlAzureExecutionStrategy but not in user initiated transactions code?

SqlAzureExecutionStrategy can't be used with user initiated transactions. It throws an Exception as soon as you execute the code inside a transaction. The MS solution is to change the code var executionStrategy = new…
Iker
  • 41
  • 1
1
vote
0 answers

RxJS `repeatWhen` with notifier repeats rapidly

I am trying to make a network retry-er using RxJS repeatWhen operator. The idea is that when a new request receives to the scheduler, then I try the request directly and if it results in a network failure result, I add it to a pool to be retried on…
ConductedClever
  • 4,175
  • 2
  • 35
  • 69
1
vote
1 answer

Calling Custom Rest Template in spring boot java application

I have a spring boot application that is running on version 2.1.7. I am trying to implement a custom rest template using Rest Template Builder in order to set connection and read timeouts. I’ve learned I need to use Rest Template Builder since I am…
Dave Michaels
  • 847
  • 1
  • 19
  • 51
1
vote
1 answer

How to re-queue message with updated information while working with Azure Service Bus Queue Function?

While working with Azure Service Bus Queue function, we know that whenever there is an exception, azure function will perform a default retry policy (max count = 10), what we would like to do is to have our message with a property called retryCount,…
Drex
  • 3,346
  • 9
  • 33
  • 58
1
vote
2 answers

spring amqp enable retry by default and prevent it according to a specified exception

In case of Exception A : retrying for finite number of times and finally when number of retrials exhausted, message is written in a dead letter queue In case of Exception B : simply, message should be written to dead letter queue I am trying to…
1
vote
1 answer

Log retry exception in Aws SnsClient

We are using AWS Sns lient to pub/sub. I have found during creating SnsClient we can use reties to define the maximum number of retries. For example, $args = [ 'region' => $region, 'retries' => $retries, 'credentials' =>…
Imran Qadir Baksh - Baloch
  • 32,612
  • 68
  • 179
  • 322
1
vote
1 answer

How to add dynamic retry policies using dotnet core and Polly

I have a dotnet core (2.1) Console application and I am using Polly to wrap a segment of my code with a retry policy. This works fine with a simple use case shown below: private void ProcessRun() { var policy =…
Rob
  • 6,819
  • 17
  • 71
  • 131
1
vote
1 answer

Microsoft Graph for OneDrive Throttling Issue - RetryAfter Property is null

We use Microsoft Graph.dll (version 1.2.1) and Microsoft.Graph.Core.dll (version 1.3.1) to extract OneDrive folder and file information (with permissions). We have been doing this successfully for over a year. When doing this we are sometimes…
1
vote
1 answer

wso2 API retry mechanism in throttling

I'm newbie on WSO2 platform. I wanted to know how messages are stored and replayed when we exceed the quota. Regards.
AmineParis
  • 351
  • 1
  • 5
  • 11
1
vote
2 answers

How to mock second try of http call?

As part of my first project I am creating a tiny library to send an SMS to any user. I have added the logic of waiting and retrying if it doesn't receive a positive status on first go. It's a basic HTTP call to am SMS sending service. My algorithm…
diwakarb
  • 543
  • 2
  • 9
  • 23
1
vote
2 answers

Failsafe with RetryPolicy and CircuitBreaker throws CircuitBreakerOpenException

I am trying to combine a retry policy with the CircuitBreaker pattern with Failsafe but I get a CircuitBreakerOpenException exception when an attempt is made with the circuit open and it is interrupted. https://github.com/jhalterman/failsafe The…
oscar
  • 1,636
  • 6
  • 31
  • 59