A few words on GraphQL and how to build the next frontier of compelling web APIs.https://brandur.org/api-paradigms
-
-
Replying to @brandur
I still have trouble imagining how to implement a GraphQL endpoint at scale on top of a relational database backend
3 replies 0 retweets 3 likes -
It practically has the N+1 query problem baked into the concept
3 replies 0 retweets 5 likes -
Replying to @simonw
So in practice you probably choose relations that you can expose relatively efficient (through a fast join or the like).
1 reply 0 retweets 0 likes -
Replying to @brandur
Even with only primary key lookups and index scans you could still end up with one GraphQL query running hundreds of small fast SQL queries
2 replies 0 retweets 0 likes -
An efficient way to solve this is to use a dataloader pattern https://github.com/facebook/dataloader … - you can group many lookups into a single query.
2 replies 2 retweets 4 likes -
We're doing this at
@khanacademy, deferring requests with promises, batching them together, then re-distributing the results.2 replies 0 retweets 2 likes
We've had ways to match lookups to designed URL schemes (paths) for years. Why is this new?
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.