What is the flow of the request in the server? #6
Unanswered
special-character
asked this question in
Q&A
Replies: 1 comment
-
I think this is because we are requesting way more than we should have in our projects fragment. I am not exactly sure where we resolve the exact fields of the response but it definitely happens outside of the inner resolver (which I had forgotten). I am going to find out how that happens and see if I can measure it accurately with our tracing with Sentry. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on speeding up some of my endpoints and am tracing them with Sentry (express handlers). It appears that my resolvers are all fast (<50ms) but it is taking up to a few seconds for the server to "finish" after the resolver is complete.
I took a look at the server source code and see that we pass the request to express when
httpServer.on('request')
but we also have an Apollo server.Is there a place that we specifically do something after the resolver is done somewhere? I took out my other middleware functions to limit the complexity but I wasn't able to find out what was happening with the request after it returned from my resolver.
Any thoughts/ideas would be appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions