GraphQL advantage: a single endpoint for all the data

I haven’t used much of GraphQL but it seems like the main selling point is that as a client you can just query one endpoint, instead of multiple with traditional REST API’s.

There’s probably much give and take here, given that it might relieve clients from having to wrangle endpoints to get their data but it pushes all that work to the server side to return fine tuned queries. And of course, the N+1 problem doesn’t disappear. Found the Shopify article to be quite insightful. Check it out ✌️, I enjoyed it.

https://shopify.engineering/solving-the-n-1-problem-for-graphql-through-batching

Published by Paul Young-Suk Lee

SWE @lyft. Currently working on data infrastructure

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: