GraphQL Performance at Shopify
summary
Shopify profiles their Ruby GraphQL stack and switches concrete pieces: replacing GraphQL‑Ruby’s pure Ruby parser with a C/YAK parser yields about 7× parsing speedup (25–30ms down to <5ms), moving static validation into a Rust edge gateway cuts p99 validation from ~50ms to 2–3ms, and forcing garbage collection after responses removes a ~24ms GC pause from the critical path. They add selection‑set aware resolvers and a writer directive to route queries to replicas safely, showing practical wins and tradeoffs.
AI-written summary · about
chapters (6)
- 0:00Introduction to GraphQL
- 1:20Lexing and parsing strategy
- 7:29Static validation techniques
- 13:28Optimizing execution strategy
- 17:48Resolver performance patterns
- 22:25Memory and garbage collection








