-
Notifications
You must be signed in to change notification settings - Fork 23
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
Message send state #669
Message send state #669
Conversation
Keeping a counter of attempts is pretty straightforward; in-memory or even stored-on-disk, Exponential back-off, too, if we want to get fancy. |
In the follow up PR we should do the following
For (2), maybe the most fool-proof way is to mark all MessageProcessingErrors as either retryable or non-retryable, and have the caller of the method catch all errors and mark the intent as TO_PUBLISH for retryable errors and FAILED for non-retryable errors |
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.
Looks great
Part of #516
In a follow up PR we need to figure out how to set the delivery status to failed after 3 unsuccessful retries to publish. @tuddman maybe you have some ideas on how to do that?