~/talk

Build a performance-optimized GraphQL API

Talkat GraphQL Scale 2022 · 2022-11-15..11-16· [graphql, web-performance]
name:Lisa Li
links:none on file
slides:none on file

Six concrete tactics and tools: enable pagination to avoid fetching millions of products; stop overfetching by requesting only needed fields; minify queries (trim whitespace — one example saves ~42 bytes); cache stable product queries by storing a 64-bit hash of the query; eliminate N+1 database calls with client-side batching/joins using DataLoader; and add end-to-end observability with AWS X‑Ray and Datadog to find the slow resolver or slow third‑party call.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08GraphQL faster than REST
  3. 2:36Request flow and performance
  4. 4:22Optimizing GraphQL engine
  5. 5:46Quick wins for queries
  6. 7:11Avoiding overfetching
  7. 8:16Minifying queries
  8. 9:23Caching persistent queries
  9. 11:52N+1 query problems
  10. 14:42Monitoring GraphQL APIs
  11. 17:15Six optimization strategies
  12. 20:01Best practices sharing
  13. 22:10Caching strategies
  14. 24:19Query complexity limits
  15. 26:03Q&A
~/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.