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

Retries #9

Open
vjkoskela opened this issue Nov 22, 2016 · 0 comments
Open

Retries #9

vjkoskela opened this issue Nov 22, 2016 · 0 comments

Comments

@vjkoskela
Copy link
Member

In the events of a non-200 (except possibly 400) or an IOException from the Apache Http Client we should enqueue the event for retry. We can either use a second queue which wraps the event with a retry counter (starting from a configurable number of retries) and a backoff (starting from a configurable interval). Alternatively, we can extend the primary queue into a priority queue to account for this. I suspect the former is more straight forward. The priority queue can also be implemented on a per thread basis thus ensuring it does not need to be thread safe.

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

1 participant