~/talk

Shopify's Breadth-First Bet: Rethinking GraphQL Execution

Talkat GraphQLConf 2026 · on Tuesday, 2026-05-19· at 11:40· Boardroom· [graphql]
github:gmac
slides:none on file

Shopify rewrites GraphQL execution to run breadth-first resolvers instead of depth-first, batching each selection across all objects so five fields over 100 items produce ~5 resolver runs not 500. They build an engine called Cardinal, open-source TypeScript core and a Ruby production engine, and report shaving 4–8 seconds off large queries while seeing up to 120x less GC at ~10k objects; trade-offs include altered error path semantics and result-building bottlenecks that required API and migration work.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:02Shopify’s GraphQL challenges
  3. 3:11Introducing Cardinal engine
  4. 5:43Depth vs breadth in GraphQL
  5. 7:30Depth-first traversal problems
  6. 8:58Breadth-first resolver model
  7. 10:00Batched resolvers vs data loader
  8. 12:47GraphQLJS benchmarks
  9. 14:58Promise overhead in depth-first
  10. 16:23Garbage collection impact
  11. 17:47Mechanics of breadth execution
  12. 21:58Error handling in breadth model
  13. 23:41Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.