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

Separate primary and secondary Apollo client links #987

Merged
merged 3 commits into from
Aug 10, 2021

Conversation

znicholasbrown
Copy link
Contributor

PR Checklist:

  • add a short description of what's changed to the top of the CHANGELOG.md
  • add/update tests (or don't, for reasons explained below)

Describe this PR

This PR removes the Batch link from the secondary Apollo client, which is used for non-component-based API requests (like auth, api status, etc). This results in significant improvements in load time (up to 40% faster over the current setup) due to these requests no longer needing to wait for the batch interval to complete.

I've also increased the batch interval for the primary Apollo client to 2 seconds (up from 1 second) and increased the batch size to 25 (up from 20). Overall this should have very little visible impact on load times but will offset any potential increase in requests from the secondary client.

@znicholasbrown znicholasbrown changed the title Separate fallback and primary apollo client links Separate primary and secondary Apollo client links Aug 5, 2021
@zhen0
Copy link
Member

zhen0 commented Aug 9, 2021

Apologies for review taking a while - as background, I don't think connected to the PR, but I'm having trouble getting server to run locally when I review this.

zhen0
zhen0 previously approved these changes Aug 10, 2021
Copy link
Member

@zhen0 zhen0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok! Up and running on server and LGTM @znicholasbrown!

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