async-graphql/async_graphql_apollo_studio_extension

Extreme slowdown with larger query results

mattoni opened this issue · 0 comments

I've hit an issue in production, where I have larger data sets, when using this plugin.

My response times from my API were increasing linearly with the size of the return value, and when I started having 2MB+ returns, it was taking over 5 minutes to return a result. This seemed pretty crazy, and after a lot of digging I disabled this extension and results went back to normal.

I think there's an issue here where the plugin is getting stuck analyzing data to send to Apollo, and blocking a timely response as a consequence. I'm not sure if it's sending response data off to Apollo Studio, but even after disabling the per-request portion of the extension I still had this issue. It wasn't until completely unregistering it from the schema that response times went back to normal.