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

Let the user optimize the request matching #602

Open
ErikPelli opened this issue Dec 26, 2024 · 1 comment
Open

Let the user optimize the request matching #602

ErikPelli opened this issue Dec 26, 2024 · 1 comment

Comments

@ErikPelli
Copy link
Collaborator

Extends #527.
Currently the URL matching just iterate over the list of the available request handlers and execute the matching ones.
This could have performance issues if the user specifies 10k+ thousands handlers, checked for each request.

In the Request handler Store specified in the pull request, we should add a method where we pass the request and the user returns the matching handlers, handled in its implementation.

Add an example in the examples folder where we use a map matching with the target host, and the modification of available handlers directly from the requests store.

@ErikPelli
Copy link
Collaborator Author

This issue contain a breaking change and requires goproxy v2
Wait for #592

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