-
Notifications
You must be signed in to change notification settings - Fork 780
Remove mentions of backoff from rabbitmq docs #2978
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
Conversation
In a recent change, the rabbitmq component dropped support for backoff policies. This updates the documentation page by leaving those out as well. Signed-off-by: Renato L. de F. Cunha <renatocunha@acm.org>
| ### Enabling message delivery retries | ||
|
|
||
| Backoff retry strategy can instruct the dapr sidecar how to resend the message. By default, the retry strategy is turned off, which means that the sidecar will send a message to the service once. When the service returns a result, the message will be marked as consumption regardless of whether it is correct or not. The above is based on the condition of `autoAck` and `requeueInFailure` is setting to false(if `requeueInFailure` is set to true, the message will get a second chance). | ||
| The rabbitmq pubsub component has no built-in support for retry strategies. This means that the sidecar will send a message to the service only once. When the service returns a result, the message will be marked as consumed regardless of whether it was processed correctly or not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this is common among all PubSub components and not just RabbitMQ. Users should use Resiliency if they want in-process retries.
What’s important to note is the difference between the two ways to retry messages:
- When using
autoAck = falseandrequeueInFailure = true, RabbitMQ is the one responsible for re-delivering messages and any subscriber can get the redelivered message. If you have more than one instance of your consumer, then it’s possible that another consumer will get it. This is usually the better approach because if there’s a transient failure, it’s more likely that a different worker will be in a better position to successfully process the message. - Using Resiliency (and the deprecated backoff policy) makes the same Dapr sidecar retry redelivering the messages. So it will be the same Dapr sidecar and the same app receiving the same message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for not getting back at this earlier. I see that @msfussell made some more changes to this PR and approved them.
I like this explanation and I've incorporated it into the PR. Please let me know what you think, @ItalyPaleAle.
hhunter-ms
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quick grammar pass
daprdocs/content/en/reference/components-reference/supported-pubsub/setup-rabbitmq.md
Outdated
Show resolved
Hide resolved
daprdocs/content/en/reference/components-reference/supported-pubsub/setup-rabbitmq.md
Outdated
Show resolved
Hide resolved
daprdocs/content/en/reference/components-reference/supported-pubsub/setup-rabbitmq.md
Outdated
Show resolved
Hide resolved
|
Stale PR, paging all reviewers |
…ubsub/setup-rabbitmq.md Co-authored-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> Signed-off-by: Mark Fussell <markfussell@gmail.com>
…ubsub/setup-rabbitmq.md Co-authored-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> Signed-off-by: Mark Fussell <markfussell@gmail.com>
…ubsub/setup-rabbitmq.md Co-authored-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> Signed-off-by: Mark Fussell <markfussell@gmail.com>
msfussell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
daprdocs/content/en/reference/components-reference/supported-pubsub/setup-rabbitmq.md
Outdated
Show resolved
Hide resolved
…ubsub/setup-rabbitmq.md Signed-off-by: Mark Fussell <markfussell@gmail.com>
daprdocs/content/en/reference/components-reference/supported-pubsub/setup-rabbitmq.md
Outdated
Show resolved
Hide resolved
…ubsub/setup-rabbitmq.md Signed-off-by: Mark Fussell <markfussell@gmail.com>
daprdocs/content/en/reference/components-reference/supported-pubsub/setup-rabbitmq.md
Outdated
Show resolved
Hide resolved
…ubsub/setup-rabbitmq.md Signed-off-by: Mark Fussell <markfussell@gmail.com>
Signed-off-by: Renato L. de F. Cunha <renatocunha@acm.org>
hhunter-ms
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
In a recent change, the rabbitmq component dropped support for backoff policies. This updates the documentation page by leaving those out as well.
Signed-off-by: Renato L. de F. Cunha renatocunha@acm.org
Thank you for helping make the Dapr documentation better!
Please follow this checklist before submitting:
In addition, please fill out the following to help reviewers understand this pull request:
Description
I've removed the outdated mentions of
backofffrom the RabbitMQ pubsub component page.Issue reference
#2977
dapr/dapr#1798