← Graph

GraphQL query batching

concept 1 connections

Pattern where a GraphQL client (Apollo's client-side batching, or React Relay's network layer) combines queries triggered at similar times into a single HTTP request. The server side supports it via graphql-ruby's multiplex, which validates and instruments each query independently while executing them concurrently. Saves HTTP overhead but can be harmful when one slow query in the batch delays the response of all others.

category
pattern
about
GraphQL query batching concept
Covers Apollo/Relay client batching and graphql-ruby's multiplex on the server side.

Provenance

Read by
4 extractions