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: Refactor req retrier/URI selection into new URISelector interface. #349

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

dtrejod
Copy link
Contributor

@dtrejod dtrejod commented Aug 26, 2022

Before this PR

The components of the request retrier in CGR were tightly coupled and hard to reason about. Due to how requests are retried currently, we are unable to preserve server state across requests very easily.

After this PR

The URISelector interface allows for implementations of client side load balancing algorithms. For example, least used connection, server size error handling, rendezvous routing, zone aware routing, strict client side sharing, ect. Multiple URISelectors can be chained together in order to compound the client balancing that occurs.

==COMMIT_MSG==
Refactor req retrier/URI selection into new URISelector interface.
==COMMIT_MSG==

Feature branch replacement of: #341

Possible downsides?


This change is Reviewable

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