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

Batched requests for remote schemas #10288

Open
idesignpixels opened this issue Jun 11, 2024 · 0 comments
Open

Batched requests for remote schemas #10288

idesignpixels opened this issue Jun 11, 2024 · 0 comments
Labels
k/enhancement New feature or improve an existing feature

Comments

@idesignpixels
Copy link

We have a remote schema for a google distance matrix API to calculate the travel time to a list of locations, currently it calls this per location.

If there was an option to turn on batched requests to remote schemas we maybe able to reduce the number of calls to this service, for example from 10 (per page) to just 1.

I think the only way we could do this currently would be to have a direct query rather than it being contextual to the location which would mean two separate requests from the front end instead of one, one to get the locations and another to get their travel time.

Apollo server supports batch requests as Query Batching.

This has also been mentioned here #1812 but likely from a client context rather than via remote schema.

@idesignpixels idesignpixels added the k/enhancement New feature or improve an existing feature label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/enhancement New feature or improve an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant