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

Suggestion - ChangeFeed Retry Strategy #58

Open
mpaul31 opened this issue May 12, 2020 · 2 comments
Open

Suggestion - ChangeFeed Retry Strategy #58

mpaul31 opened this issue May 12, 2020 · 2 comments

Comments

@mpaul31
Copy link

mpaul31 commented May 12, 2020

I would love to see a more real-world example of how to handle retries during a change feed with azure functions. it would be really convenient if there was a way for the function (consumer) to signal back to the processor something went wrong and retry at a later point.

Thanks!

@joelhulen
Copy link
Contributor

@mpaul31 thanks for the great suggestion! This can absolutely be done by using Polly, which is also used for the HttpClient calls via a simple retry policy. Could you clarify a little a concrete example of what you want to see for a retry strategy? If we're talking about multiple instances of the consumer(s), then the problem increases in complexity. You would want something along the lines of a distributed circuit breaker, which goes a bit beyond the original scope.

@mpaul31
Copy link
Author

mpaul31 commented May 13, 2020

@joelhulen a retry would be necessary when an exception occurs during the processing of the document(s) on a change feed trigger. Could be transient or could be something more major downstream causing the error. Also, I noticed the change feed sdk has a pull-based model in preview. maybe this could be used in tandem to ensure reliability?

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

No branches or pull requests

2 participants