~/talk

GraphQL and caching - Why is it so hard, or is it?

Talkat GraphQL Conf. 2022 · on Thursday, 2022-09-29· [graphql, web-performance]
slides:none on file

Claim: GraphQL lacks native HTTP caching but is practical if requests expose stable identifiers and use GET or persisted queries. Implements: GET with query in URL, persisted queries, and the global ID/node pattern for cache keys. Notes on limits: ETag or lastModified must cover entire query so single-field changes often invalidate whole responses. Demo uses Airtable + Netlify and Stellate as a cache proxy and shows latency dropping from ~200 ms to ~29 ms on a tiny API.

AI-written summary · about

  1. 0:00Introduction to GraphQL caching
  2. 1:25What is GraphQL and caching
  3. 3:18Why caching matters in GraphQL
  4. 4:43GraphQL and HTTP caching limits
  5. 8:59Using GET requests for GraphQL caching
  6. 13:56Challenges with GraphQL cache invalidation
  7. 16:04Globally unique IDs in GraphQL
  8. 18:42Node pattern for object identification
  9. 20:26Server-side caching in GraphQL
  10. 20:46Outsourcing GraphQL caching with Stellate
  11. 23:58Summary and conclusion
~/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.