~/talk

GraphQL. Accelerated

Talkat nodejsday 2020 · on Wednesday, 2020-10-14· [graphql]
slides:none on file

GraphQL on Node.js becomes fast by concrete changes: use mercurius with an LRU cache to avoid reparsing, benchmark with node clinic and autocannon, and JIT-compile hot queries with graphql-jit to generate JavaScript that V8 optimizes. Batching loaders remove N+1 DB requests so a nested query hits a handful of DB calls instead of one-per-item, pushing latency and throughput near REST levels in benchmarks. The implementation exists and the optimizations work.

AI-written summary · about

  1. 0:00Start
  2. 3:28Nonstandard
  3. 9:00Makes prototyping easy!
  4. 12: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:40mercurius uses an LRU to cache stable queries
  6. 16:36On the fly code generation
~/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.