Questions tagged [exponential-backoff]
76 questions
1
vote
2 answers
How to set retry delay options for DynamoDB using Boto3 with Python?
I'm trying to avoid the ProvisionedThroughputExceededException by setting a custom exponential backoff using the "base" option like we can do in JavaScript according to this answer:
AWS.config.update({
maxRetries: 15,
retryDelayOptions: {base:…

ricardofunke
- 61
- 5
1
vote
1 answer
How to throw final error using WaitAndRetry and Execute?
I'm, trying to check a simple WaitAndRetry of Polly
class Program
{
public static void Main()
{
int i = 0;
var _retryPolicy = Policy
.Handle()
…

K.W
- 123
- 7
1
vote
1 answer
logging while using exponential back off retry in python
I have a python code inside a micro-service which I need to publish and/or post to a cloud service. For now I have put this publish/post inside try/except to log the failure of this publish or post:
def func(self,data):
my_message =…

Amin Merati
- 2,221
- 4
- 22
- 38
1
vote
5 answers
Keep retrying a function in Golang
I am trying to make a functionality which would work in the following manner:
As soon as the service function is called, it uses the Fetch function to get records from a service (which come in the form of byte array), JSON unmarshal the byte array,…

newbietocoding
- 55
- 1
- 1
- 9
1
vote
0 answers
Implement Exponential Back off in NiFi using RetryFlowFile processor
As a part of error handling in NiFi, I am trying to implement retry mechanism on InvokeHTTP Processor. I made use of RetryFlowFile Processor which does the job of retrying for 'x' number of times. My query is, is there any inbuilt Processor which…

likhita
- 27
- 3
1
vote
0 answers
Customise/Stop backoff/retry option while sending FCM notification.;
Due to default backoff/retry on notification failure my threads remain blocked for longer which impact the positive flow of my application. I don't want this retry or want to minimize it. The logic am using to create FirebaseApp is:
FileInputStream…

Suryakant
- 11
- 1
1
vote
1 answer
Backoff handling with goroutines
A program sends data to API using N concurrent workers as goroutines that consume data from a channel (Producer/Consumer pattern). API signals it can't handle more using HTTP status codes and demands a back-off.
How do I block all workers until…

Konrads
- 2,206
- 2
- 30
- 45
1
vote
1 answer
CAS value updation in case of server failures on couchbase
I am trying to handle some couchbase exceptions in my application. The upsert method can throw a TemporaryFailureException indicating temporary failures on server end. Can there be a case where the CAS value of the document would have been updated?…

Hibernating Lizard
- 11
- 1
1
vote
1 answer
Maximum number of retries using DecorrelatedJitterBackoff
I am using polly DecorrelatedJitterBackoff policy for retrying the http request. My use case is some thing like when the timeSpan reaches 300 seconds it should retry int.maximum number of times for every 300 seconds.
I am trying to achieve this…

Pooja P N
- 57
- 1
- 6
1
vote
1 answer
Configuring NServiceBus (with RabbitMQ Transport) for exponential backoff on delayed retries
I'm trying to configure NServiceBus to implement an exponential backoff scheme for delayed retries. For example:
1) on the first failure retry in 2^0 minutes
2) on the second failure retry in 2^1 minutes
3) on the third failure retry in 2^2…

LearningThings
- 79
- 8
1
vote
0 answers
How to go about implementing exponential backoff for an AWS Lamba function that deletes EBS snapshots
Background: I am very new to the AWS Management Console, and I just created a very simple AWS Lambda function(Python 3.7) that deletes EBS Volume Snapshots based on a time limit. I also created a CloudWatch event to trigger the function every hour…

Malvika Sriram
- 11
- 3
1
vote
1 answer
How do I insert Backoff script into my web scrape
I want to use the package "Backoff" in my web scrape and I cannot get it to work. Where do I insert it?How to I get "r = requests..." to still be recognized?
I've tried putting the statement into my code in various ways and it is not working. I want…

workin 4weekend
- 371
- 2
- 11
1
vote
1 answer
Exponential backoff
Let's say I had the equation T = sum(A**n) for n from 1 to M.
Now let's say I knew M and T, but wanted A. How would I solve for A?
I want to do an exponential backoff in the event of an error, but I don't want the total time spent backing off to be…

sam
- 67
- 1
- 1
- 7
1
vote
2 answers
Is there a way for exponential backoff retry with Alamofire
I am trying to implement the exponential back off retry logic with Alamofire in case server returns 500 due to some reason for some of my end points.
Is there a way that I can achieve this with Alamofire? Please guide with example.
Thanks in…

gurpreet Singh
- 179
- 2
- 10
1
vote
1 answer
Actor retry with back-off and retry limit
I need retry mechanism on akka actors with increasing time between the retries and maximum retry limit.
For this purpose I'm trying to use the BackOffSupervisor pattern, provided by akka. The problem is that, from my test, the back-off strategy and…

Borislav Nikolov
- 11
- 3