~/talk

GraphQL - Accelerated

Talkat NodeConf EU 2018 · on Monday, 2018-11-05· [graphql, nodejs]
slides:none on file

Engineers make GraphQL run much faster on Node.js by applying three concrete steps: cache parsed/validated ASTs so parsing and validation skip repeated work, treat stable queries like prepared statements using variables, and JIT-compile hot queries into plain JavaScript so V8 optimizes them. Performance is measured with clinic flame and load-tested with autocannon, yielding about 20–30% faster typical throughput and up to 2x on complex hot queries.

AI-written summary · about

  1. 0:00Intro
  2. 3:20# execute friends query friends (name: "mathias")
  3. 6:50A popular community GraphQL framework is Apollo
  4. 11:34On each and every request the server first has to parse the query to produce an Abstract Syntax Tree and then walk that to execute the query
  5. 14:37Uses an LRU to cache stable queries
  6. 16:59We did additional performance analysis using clinic flame
  7. 18:16on the fly code generation
  8. 21:30Using our improvements GraphQL becomes very competitive to rolling your own stack
~/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.