Add exponential back-off with jitter in SQS Batch Processor in case of temporary errors #22
Labels
Batch
Batch processing utility
enhancement
New feature or request
Java
Proposed
Community submited
Python
Is your feature request related to a problem? Please describe.
We use SQS Batch processing for Powertools and some message fails, it stays in the queue until it is received enough times that it moves to DLQ instead. The gap between processing of this failed message is equal to or greater than the SQS's set visibilityTimeout. We can override this visibilityTimeout at failure events for individual messages during exception handling.
Describe the solution you'd like
I would like that SQS Batch Processor library provides this functionality by default so that we don't need to write this ourselves. This also ties nicely with another feature request of mine: #21.
Describe alternatives you've considered
Writing my own utility code using the references I found on the internet like this: https://ivan-site.com/2018/06/exponential-backoff-in-sqs/.
Additional context
This is a pretty common usecase.
The text was updated successfully, but these errors were encountered: