~/talk

New HotN+1ness -Hard lessons migrating from REST to GraphQL

Talkat RailsConf 2019 · 2019-05-01..05-03· [graphql, ruby-on-rails]
links:none on file
slides:none on file

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

  1. 0:00Intro
  2. 0:46Overview
  3. 5:37Why am I here
  4. 9:55What is GraphQL
  5. 12:20Anxious Loading
  6. 15:47Delegation
  7. 20:45Retro
  8. 25:08Making Better Decisions
  9. 29:30Free Documentation
~/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.