Implement config for the backoff middleware #85
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue:
During an incident in which we experienced a message bottleneck that was being indefinitely reattempted, we realized that the backoff middleware was instantiating the default configurations of the retrier and not allowing these configurations to be passed as parameters.
Solution:
Add to the configuration structure of the pipelines configurations for the backoff middleware's retrier. To maintain backward compatibility, if these configurations are not defined, default configurations will be used. Additionally, if a Dead Letter Queue (DLQ) topic is defined in the config but the number of retries is set to infinite, a warning log indicating the risk of an infinite loop will be emitted during resource instantiation.