Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Upgrade to apollo-server-express@2.4.0-alpha.0 #4533

Merged
merged 1 commit into from
Jan 17, 2019

Conversation

mxstbr
Copy link
Contributor

@mxstbr mxstbr commented Jan 10, 2019

Status

  • WIP
  • Ready for review
  • Needs testing

Deploy after merge (delete what needn't be deployed)

  • api

This implements query parsing and validation caching, reference apollographql/apollo-server#2111, and should thusly provide a nice speedup for our frontend's queries!

Since it's an alpha version, we should ship it to alpha.spectrum first, make sure nothing breaks and only then release to production and keep a close eye on the metrics too.

This implements query parsing and validation caching, reference
apollographql/apollo-server#2111, and should
thusly provide a nice speedup for our frontend's queries!
@brianlovin
Copy link
Contributor

Throw it on alpha! It does the parsing and caching out of the box? Or do we have to enable that?

@mxstbr
Copy link
Contributor Author

mxstbr commented Jan 11, 2019

Good question, I'm not 100% sure as the code comments say it's enabled by default, but the tests say it's disabled by default 😅

/cc @martijnwalraven

@mxstbr
Copy link
Contributor Author

mxstbr commented Jan 11, 2019

@abernix answered my on Slack, this is enabled by default! Deploying to api.alpha

@mxstbr
Copy link
Contributor Author

mxstbr commented Jan 11, 2019

After a short, fine trial run on alpha this is live on production. Not seeing any particularly big speedups yet, but it also doesn't hurt:

screen shot 2019-01-11 at 13 23 22

Going to try increasing the cache limit next week and seeing whether that makes for a more noticeable impact!

@mxstbr
Copy link
Contributor Author

mxstbr commented Jan 14, 2019

Reassessing after a couple days in prod, it seems to have helped @abernix!

p99 response time over:

  • Three days before deploying this: 250.78ms
  • Three days after deploying this: 230.65ms

👍

abernix added a commit to apollographql/apollo-server that referenced this pull request Jan 15, 2019
The parsed/validated cache store is on by default.  While it could be disabled,
in theory, it cannot be disabled since its an internal property of the
request pipeline processor class.

See confusion here:

  withspectrum/spectrum#4533 (comment)
@brianlovin brianlovin merged commit 0898168 into alpha Jan 17, 2019
@brianlovin brianlovin deleted the cache-graphql-parse-results branch January 17, 2019 00:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants