New HotN+1ness -Hard lessons migrating from REST to GraphQL
summary
A Rails app migrates from REST to GraphQL and accidentally amplifies N+1s until resolvers drop eager loading and adopt batching; engineers add graphql-batch with RecordLoader and association loaders, use promise.all to preload related encounter stream and plan objects, and fix delegated methods and service/decorator preloading. Result: response times fall from 2–10s to ~60ms, Apdex rises to 1.0, throughput ~550 rpm, and N+1s for the Streams resolver disappear.
AI-written summary · about
chapters (9)
- 0:00Intro
- 0:46Overview
- 5:37Why am I here
- 9:55What is GraphQL
- 12:20Anxious Loading
- 15:47Delegation
- 20:45Retro
- 25:08Making Better Decisions
- 29:30Free Documentation








