↑
logo

The Power of GraphQL, Without GraphQL

Posted by Shoetp |an hour ago |3 comments

cogman10 28 minutes ago

I used to think GraphQL was a pretty good idea. You can change the shape of your model, do complex queries, and ultimately switch out the backends. What's not to love?

But over time I've come to realize that those features aren't all that helpful. More fixed and static responses are much easier to manage. They force the caller to do things in a performance oriented way for the backend. And, importantly, all telemetry is based on CRUD/REST style endpoints. You lose a lot of that if you just have a GraphQL endpoint. It makes it supremely hard to see how you are being called or what you can drop.

It's flexible, but it adds too much undo complexity to a system that adopts it.

Well thought out REST endpoints organically grown as usage is required or observed trumps hyper flexible endpoints created because "Who knows what the user might need". And particularly in the age of LLMs and AI where adding and deploying new endpoints can take hours rather than days. Or making/updating a client for a service is extremely fast, there's just no reason not to go down that route.

jarek83 an hour ago

Solving own problems, that most other stacks don't have

brazukadev 23 minutes ago

I have worked in tens of React projects and there is not one that GraphQL made better. It is agonizing to see it still "surviving".