3 ms·
I think the complexity of GraphQL and the simplicity of REST are both a bit overstated. In my experience, GraphQL reduces total complexity when there are a lot
by doctor_eval 4y ago
I think the complexity of GraphQL and the simplicity of REST are both a bit overstated.
In my experience, GraphQL reduces total complexity when there are a lot of backend services. That is, you are trying to stitch together a bunch of disparate things. Tools like Postgraphile really help in these cases. It’s just another server.
In other cases, GraphQL can make things much more complicated. The benefit of REST is it’s simplicity (especially if - let’s face it - you forget about all that inconvenient “representational state transfer” stuff and really it’s just GET JSON)
Like most things in life and software, there is not one true answer. The goal should be to reduce the complexity of the system as a whole, not to reject one technology because it adds complexity to one specific aspect of a system.