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

improvement: Implement round robin scorer as URISelector interface #351

Draft
wants to merge 6 commits into
base: dt/uri-retry-middleware
Choose a base branch
from

Conversation

dtrejod
Copy link
Contributor

@dtrejod dtrejod commented Aug 26, 2022

Before this PR

Referencing the new URIScorer interface from #349, we add a implementation of the URIScorer for the round robin URI scoring algorithm. Round robin as of recently was the default algo for selecting URIs. It's implementation was subtle within the request retrier seen here:

nextURIOffset := (r.offset + 1) % len(r.uris)

After this PR

==COMMIT_MSG==
Implement round robin scorer as URISelector interface
==COMMIT_MSG==

Possible downsides?


This change is Reviewable

@dtrejod dtrejod changed the base branch from develop to dt/uri-retry-middleware August 26, 2022 19:50
@dtrejod dtrejod force-pushed the dt/round-robin-scorer branch from 74ef7fa to 8ac8585 Compare August 26, 2022 20:21
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.

2 participants