News for hackers. Stuff that matters.
Re:Post-REST by tuukkah on Monday November 19, 2018 @03:31PM (#18489527)
> To start with, it’s not as though client de­vel­op­ers can com­pose ar­bi­trary queries, lim­it­ed on­ly by the se­man­tics of GraphQL, and ex­pect to get uni­form­ly de­cent per­for­mance. (To be fair, the same is true of SQL.)

Maybe I'm missing something, but isn't that exactly what you can expect from a GraphQL API as a sweet spot between SQL and REST? Semantics of GraphQL enable a schema-dependent set of queries, not arbitrary queries.

> Any­how, I see GraphQL as a con­ve­nience fea­ture de­signed to make syn­chronous APIs run more ef­fi­cient­ly.

For asynchronicity, GraphQL has subscriptions.

That being said, I agree GraphQL (of today at least) won't be a solution to every problem and I bet transports such as HTTP/2 and HTTP/3 will cause new things to be built which don't look like just a faster REST, GraphQL or MQTT. I would mention event sourcing and persistent logs in addition to just stream/queue processing.

Tooling (like API management gateways and API consoles) is not still all there for GraphQL and MQTT either.

Re:Post-REST by cryptonector on Monday November 19, 2018 @05:32PM (#18490330)
> Semantics of GraphQL enable a schema-dependent set of queries, not arbitrary queries.

I mean, in SQL useful queries are generally schema-dependent. Sure, you could have XPath/JSONPath/whatever extensions that allow you to query something closer to free-form documents, but your queries will still be schema-dependent in some way.

Re:Post-REST by tuukkah on Monday November 19, 2018 @05:40PM (#18490382)
SQL schema defines data and you cannot limit which queries are available on that data, whereas GraphQL schema defines both data and which queries are available.
Re:Post-REST by tootie on Monday November 19, 2018 @04:23PM (#18489871)
I'm surprised we haven't seen more development already with HTTP/2 REST APIs. It let's you do your API at whatever logical level makes sense and then do your orchestration independently.