# Solving the N+1 Problem for GraphQL through Batching

DevFeed: [Solving the N+1 Problem for GraphQL through Batching](<https://devfeed.tech/articles/solving-the-n-1-problem-for-graphql-through-batching-1626.md>)

Original publisher: [Read original article](<https://shopify.engineering/solving-the-n-1-problem-for-graphql-through-batching>)

Author: Leanne Shapton

Published: 2018-04-24T18:20:00Z

Content type: article

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [GraphQL](<https://devfeed.tech/topics/graphql.md>), [API](<https://devfeed.tech/topics/api.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Server](<https://devfeed.tech/topics/server.md>), [Shopify](<https://devfeed.tech/topics/shopify.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [back-end](<https://devfeed.tech/tags/back-end.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [rest](<https://devfeed.tech/tags/rest.md>), [schema](<https://devfeed.tech/tags/schema.md>), [shopify](<https://devfeed.tech/tags/shopify.md>)

## AI overview

This Shopify Engineering article introduces GraphQL as an alternative to REST for reducing over-fetching and under-fetching. It explains how client-specific queries, a single endpoint, and schemas help clients request targeted data, in the context of scalable back-end systems and the Storefront API. The supplied text ends before explaining the batching solution to the N+1 problem.

## Source excerpt

Authors: Leanne Shapton, Dylan Thacker-Smith, & Scott Walkinshaw When Shopify merchants build their businesses on our platform, they trust that we'll provide them with a seamless experience. A huge part of that is creating scalable back-end solutions that allow us to manage the millions of requests reaching our servers each day. When a storefront app makes a request to our servers, they're interacting with the Storefront API.