Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement retry strategy #167

Merged
merged 6 commits into from
Nov 20, 2021
Merged

Implement retry strategy #167

merged 6 commits into from
Nov 20, 2021

Conversation

adenhertog
Copy link
Contributor

@adenhertog adenhertog commented Nov 20, 2021

Closes #166

Exposes a RetryStrategy that can be configured at the BusConfiguration level on startup.

This allows the consumer to choose or provide a new strategy that determines the delay between retry attempts on message failures. By default, a DefaultRetryStrategy is provided that delays a message between 5ms to 2.5hrs with a jitter of 10% per retry to avoid any deadlock retries.

All transports except RabbitMQ have implemented this. Rabbit cannot cleanly leverage a retry strategy as messages are immutable, and the way retries are achieved is to redrive failures to a retry queue that has a static TTL.

@adenhertog adenhertog merged commit aca3568 into master Nov 20, 2021
@adenhertog adenhertog deleted the 166-retry-strategy branch November 20, 2021 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delay a retry by X seconds
1 participant