Ask HN: GraphQL Performance Issues, Am I the Only One?
We've recently made the leap to GraphQL for our APIs, attracted by its promise of more efficient and flexible data retrieval. The initial transition was smooth, and the benefits were immediately apparent. But, we've since hit a bit of a snag concerning performance.
We already implemented some of the recommended practices, like data loaders and simple expiration-based caching, but we're still in search of that significant breakthrough in optimization. The improvements, while beneficial, haven't been the game-changer we hoped for.
Does anyone talk about the elephant in the room? our app performance sucks, we need help.
Any insight? advice?
7 comments
[ 3.0 ms ] story [ 23.4 ms ] threadUltimately if your app performance sucks and you need help, then hire people who can help.
I'm basically looking for more perspective of other teams, if they are feeling the same after migrating to graphQL (the same query in simple node + SQL ORM took half of the time), and if there is something that helped them solve these problems.
e.g. caching graphql is not as easy as caching GET API, something that I didn't know before.
Looks like these recommended practices did not include benchmark the queries and DB for the workload. And 99.99% there was no person with performance engineering mindset was involved (or was/ were completely ignored)
My general feeling is that for the average developer, graphql can lead to some serious performance issues, and I wonder if it's just my experience or we are doing something wrong.
We would never do it again if we could.