Re:Migrating to GraphQL: A Practical Assessment
by jayd16 on Friday July 05, 2019 @01:49AM
(#20360137)
I just don't get it. You still have to have provided the data for the client devs to query. Does opening up the full schema model make things easier to implement? Aren't you just kicking the can of api design down the road to the client devs causing thicker clients full of their own business logic?
Re:Migrating to GraphQL: A Practical Assessment
by pm90 on Saturday July 06, 2019 @11:05PM
(#20373355)
I think you’re failing to understand how companies tend to work. The front end teams and backend teams are usually different and want to work on different things. But for the front end team to build an app with the data they need, they need the backend team to change the rest api to provide different data. That kind of change is usually not very interesting for backend teams to do and they stall, while the frontend team is waiting By the seat of their pants for days for a change which they feel should be pretty damn small.
One easy way to fix this is by using graphql instead of REST. Now the frontend teams have access to somehow get the data they need and are thus unblocked.
Re:Migrating to GraphQL: A Practical Assessment
by desc on Thursday July 04, 2019 @07:10PM
(#20358528)
Fair enough, it certainly seems to offer benefits re. flexibility and rapid development.
I'm just too used to being the person who then has to make the server deal with this particular use case (meaning a million possible variations on the same query) run a thousand times faster :P
So if it's understood at all stakeholder levels that there are tradeoffs, it could be a good tool. If. >_>
Re:Migrating to GraphQL: A Practical Assessment
by he0001 on Friday July 05, 2019 @04:51AM
(#20360911)
I’ve always thought the perceived rapidness is because you are now able put code in the front end which really should be existing in the back end and while at the beginning it’s faster development, you just delay the inevitable problems of spaghetti APIs.
Of course we're very concerned about the performance drawbacks and are trying to plan for them. We don't expect it to be web scale and aren't replacing our REST APIs that serve the public. Even so we expect to need to be smart about calculating query complexity.
So while most of the criticisms of GraphQL on this page do apply, for us the net value is looking quite positive.