AWS Lambda - Apollo errors are taking multiple seconds. Successful requests are fast. #7129
Replies: 2 comments 6 replies
-
That seems very strange. Are you talking about errors that are thrown inside your resolvers or elsewhere? Are you able to make a reproducible demo (eg, a small repo that we can even deploy to Lambda ourselves)? What version of Apollo Server? Do you have usage reporting to Apollo Studio set up?
|
Beta Was this translation helpful? Give feedback.
-
@glasser thanks for your reply. I don't have reproducible demo right now, unfortunately. Trying right now to look into apollo code and yes, I have found the place with plugins being called, but having problems to get inside of the server and fetch a list of full plugins that are activated. the only thing that I have in my config is Wondering if there is any plugin that is activated which is trying to do something funky there... But I didn't have any additional things set up. Not using Apollo Studio either. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm using Apollo-Lambda on AWS and noticing a very strange issue - throwing an exception will result in multi-second response time. from 2seconds to 6seconds (I think the upper limit might be Lambda's timeout).
I'm using
serverless
framework withesbuild
to deploy. Locally withserverless-offline
everything works fast.Successful responses on deployed instances are also very fast. Only exceptions are taking super long time.
I have tried modying
formatError
and I see that there is even a big delay between me throwing an exception in the code and seeing the same exception in theformatError
callback.Honestly, no idea where to look anymore.
Does anyone have any ideas? Would appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions