News for hackers. Stuff that matters.
Re:You Shouldn’t Use GraphQL by endisneigh on Friday November 12, 2021 @12:29PM (#29202028)
I honestly don’t see how every single con of graphql here doesn’t also apply to a poorly implemented REST service
Re:You Shouldn’t Use GraphQL by tobyjsullivan on Friday November 12, 2021 @12:42PM (#29202225)
This has been bothering me for years. I don't understand why REST vs GraphQL are so often presented as the only options. My observation is 90% of APIs for systems I've worked on should be using something more akin to RPC yet it doesn't even register in the conversation. I'm sure there are other great options too.

I've never seen an API on a project I've worked on that comes close to proper REST - and rightfully so as they'd never benefit.

Re:You Shouldn’t Use GraphQL by dragonwriter on Friday November 12, 2021 @12:48PM (#29202313)
> My observation is 90% of APIs for systems I've worked on should be using something more akin to RPC

A lot of “REST” is something more akin to RPC, which is probably why those aren't broken out separately. REST only occasionally refers to anything resembling the architectural model described by Roy Fielding.

Re:You Shouldn’t Use GraphQL by jayd16 on Friday November 12, 2021 @01:04PM (#29202502)
I don't know, I think gRPC is fairly common as well. Its not on the hype train because it doesn't move design control like GraphQL (which moved some API design control from backend to frontend devs.)