r/programming • u/macrohard_certified • Sep 03 '26
Maybe you don't need GraphQL
https://alexandrehtrb.github.io/posts/2026/09/maybe-you-dont-need-graphql/
278
Upvotes
r/programming • u/macrohard_certified • Sep 03 '26
View all comments
49
u/Pharisaeus Sep 03 '26 •
The issue is:
A good example is the "subcribe" feature - from the frontend perspective it's great, you just subscribe to changes in some data and you have real-time auto-updating display for it, without the need to fetch it periodically. But in reality this simply shifted that responsibility to the backend - now the backend might need to run some threads to fetch the data and monitor for changes (eg. imagine that this data comes from some other system, so you don't know when it gets modified).
Similarly one of the selling points of GraphQL is that you only get the data you requested without the need to pull anything extra. But on the backend side someone has to implement all those partial resolvers to make this actually true. I've seen cases where backend would pull everything every time, and simply drop stuff that wasn't needed.
The article was written from the backend perspective, so for obvious reasons it will be critical. Frontend people will hate it, backend people will agree with it :)