Questions tagged [retrypolicy]

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

101 questions
0
votes
0 answers

How to use MessageRetry in masstransit kafka?

I use masstransit kafka rider, but message retry not running. I want it to bypass "Consume Loop Faulted" errors. UseMessageRetry & UseCircuitBreaker has no effect. m.AddRider(rider => { …
0
votes
0 answers

Apache Camel retry delivery attempt log issue

When retrying SQLException with max attempts of 3, i was logging the attempts and used below parameters for the same. ...... .maximumRedeliveries(3) .redeliveryDelay(1000) .asyncDelayedRedelivery() .logRetryAttempted(true) .log(LoggingLevel.ERROR,…
Satish
  • 11
  • 2
0
votes
0 answers

AWS - Lambda invocation from Message/Notif/Event with exponential retry and ~1 day delay support between retries

When the lambda function receives message/notification/event, my requirement is to process it straightaway but it fails, push it to AWS infra so that it can be retried with backoff approach with support for ~1day delay before final retry is…
743
  • 155
  • 2
  • 10
0
votes
0 answers

How to use exponential back-off logic in Azure device client?

I have a job in c# which runs every 5 minutes and acts like a heartbeat to check the client status When the status is Disconnected_Retrying, I exit the timer job assuming built in retry logic will work. However, status always comes as…
kudlatiger
  • 3,028
  • 8
  • 48
  • 98
0
votes
1 answer

Retry pattern with configurable handling parameters for exceptions in .NET

I need to enhance basic Retry pattern implementation for handling multiple types of exceptions. Say I want to implement a method (M) that re-attempts some action. And if that action causes an exception, main method catches it and passes to some…
murick
  • 86
  • 1
  • 7
0
votes
1 answer

How to implement Retry logic in RabbitMQ?

In my project I'm setting SimpleRetryPolicy to add custom exception and RetryOperationsInterceptor which is consuming this policy. @Bean public SimpleRetryPolicy rejectionRetryPolicy() { Map, Boolean>…
0
votes
1 answer

How can i use Retry pattern in Azure functions?

I have created a task scheduler in azure function and wanted to implement retry policy if Proxy url returns some error message.
Liza
  • 33
  • 5
0
votes
1 answer

Why am I receiving empty Retry-After headers from Microsoft Graph messages subscription?

See the logs, they're pretty descriptive! I've bolded the header. Retry-After returns a value of 0, where an amount of milliseconds is expected. I'm currently falling back on exponential back-off, which is far from ideal in this case. The…
0
votes
1 answer

A good way to pass IConfiguration to static class?

I am using this dapper extension that uses polly for retry. We can see that it defines a static retry policy: private static readonly AsyncRetryPolicy RetryPolicy = Policy …
daxu
  • 3,514
  • 5
  • 38
  • 76
0
votes
1 answer

How to Configure a RetryTemplate in Spring Batch with Java Configuration

I am trying to set up a RetryTemplate in Spring Batch, I just cannot find an example on how to add the RetryTemplate into the StepBuilderFactory. I've found this example to set it up in a SpringBoot Application,…
msuzuki
  • 105
  • 2
  • 15
0
votes
0 answers

Failsafe : Execute a void method and return result based on success/failure

I am using Failsafe framework (link) to execute a method. My use case is to execute a void method x number of times and return success or failure based on the execution result. Below is how my (pseudo) code looks like: public void…
Darshan Mehta
  • 30,102
  • 11
  • 68
  • 102
0
votes
0 answers

Azure Function Fixed Delay Retry

I have Azure Function using .NET Core 3.1\C# I am trying to use retry policy. See below code for the function: using System; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Host; using Microsoft.Extensions.Logging; namespace…
Farukh
  • 2,173
  • 2
  • 23
  • 38
0
votes
1 answer

Apache HttpClient : Retry with failsafe results in 400 (bad request)

I am using Apache HttpClient with Failsafe java library. Below is how the (pseudo) code looks like: RetryPolicy policy = new RetryPolicy<>() .handleResultIf(/* Response code is 404 */) …
Darshan Mehta
  • 30,102
  • 11
  • 68
  • 102
0
votes
1 answer

Azure storage queue - retry mechanism implementation

Im using nuget package "Microsoft.Azure.Storage.Queue" Version="11.1.7" to create Azure storage queue client as below, AsyncLazy qClient = new AsyncLazy( async () => { var myStorageAccount =…
0
votes
1 answer

How to make Failsafe RetryPolicy handle ConstraintVoilationException

I am trying to insert and update on a table, by reading messages from active mq triggered via separate threads each time. At times insert query fails because of ConstraintVoilationException. I want to do a retry as the code will consider the retry…
coretechie
  • 1,050
  • 16
  • 38