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

Allow filtering requests to engine plugin endpoints #10615

Open
paritosh-08 opened this issue Nov 28, 2024 · 0 comments
Open

Allow filtering requests to engine plugin endpoints #10615

paritosh-08 opened this issue Nov 28, 2024 · 0 comments
Labels
c/v3-engine V3 Metadata and Engine k/enhancement New feature or improve an existing feature

Comments

@paritosh-08
Copy link
Contributor

paritosh-08 commented Nov 28, 2024

Component

Graphql engine plugins

Is your proposal related to a problem?

Currently there is no way to configure the engine plugin to selectively trigger the
API endpoint.

Imagine a use case where the graphql endpoint receives a lot of graphql queries
and only a few mutations and I want to do some business logic for mutations only.
With the current configuration, you will have to do this filtering in the plugin API
handler itself, which means most of the requests to the plugin endpoint will be
discarded.

Describe the solution you'd like

If we could somehow add some filtering on the engine side itself, we can save on
some network calls and also have better latency for the graphql API.

Describe alternatives you've considered

The alternative here is to handle this filtering on the plugin endpoint handler, which
is not a good solution as we are wasting a lot of resource in handling the requests
that should not have triggered the endpoint in the first place.

@paritosh-08 paritosh-08 added k/enhancement New feature or improve an existing feature c/v3-engine V3 Metadata and Engine labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/v3-engine V3 Metadata and Engine k/enhancement New feature or improve an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant