~/talk

Caching GraphQL APIs

Talkat GraphQL Day Toronto 2019 · on Friday, 2019-03-15· [web-performance, graphql]
slides:none on file

Shows a production full query cache used on Shopify Storefront API that stores entire JSON responses in memcache, generating keys from shop/app, a normalized query hash, variables/operation hash and a version token for invalidation. Cacheability is opt in per GraphQL object type; about 85% cacheable requests are possible. Observed latencies fall from 500ms vs 70ms (miss vs hit). Notes tradeoffs: response size, cache storage, cardinality/evictions and tooling to opt types in.

AI-written summary · about

  1. 0:00Start
  2. 6:05API Generalizations
  3. 16:55Cacheable requests
  4. 17:35Response time
  5. 18:24Downsides
~/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.