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

Use matcher to select backend instead of type check #130

Open
masih opened this issue Jun 22, 2023 · 0 comments
Open

Use matcher to select backend instead of type check #130

masih opened this issue Jun 22, 2023 · 0 comments

Comments

@masih
Copy link
Member

masih commented Jun 22, 2023

A set of backend types were introduced to then selectively route traffic like this. But a matcher functionality exists already that would select appropriate backends depending on the incoming request.

The matcher mechanism is much more extensive since it allows us to inspect HTTP requests fully. It also results in a less verbose and more readable code to select backends depending on incoming requests. An example of this is already present for cascading backends here.

Refactor the code to use matchers instead of backend types for choosing which route to take for a given request.

@masih masih transferred this issue from ipni/storetheindex Jun 22, 2023
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