News for hackers. Stuff that matters.
Re:I reviewed 1,000s of GraphQL vs. REST perspectives by randomdata on Friday August 11, 2023 @03:40AM (#37086130)
> I've always found REST more logical.

They shouldn't be at odds with each other. GraphQL was designed to sit in front of your REST services - occupying the so-called backend for frontends (BFF) layer – allowing your service graph to be navigated by query in order to allow "frontend folks" to roll up all their calls in a single request to reduce the high round trip costs that can be found outside of the datacenter.

The Unix philosophy remains. You are still calling individual REST services. The only difference is that the client is able to leverage GraphQL to push that work to inside of the datacenter, where latency is much more tolerable.

Granted, if your clients are known to be on solid connections you likely don't need to even bother, but GraphQL comes from Facebook where a large segment of their users are on spotty mobile networks where round trip reduction is critical to providing a usable experience.

Re:I reviewed 1,000s of GraphQL vs. REST perspectives by SlickStef11 on Friday August 11, 2023 @02:18PM (#37091984)
For more info on BFFs: https://bff-patterns.com/