~/talk

Embracing resiliency in GraphQL-Drop the cache-aside pattern and overcome the...

Talkat code.talks 2023 · 2023-09-14..09-15· [microservices, frontend-architecture]
links:none on file
slides:none on file

GraphQL gateway at Joyn experiences catastrophic traffic when a shared Redis cache fails — with cache hit ratios of ~90% causing roughly a 10x spike and 95% around 20x — so the team replaces cache-aside by shifting heavy work into the write path, adding change data capture into a messaging platform, running a worker inside GraphQL to populate a local datastore, and rolling out via feature flags (silent sampling then 10%, 20%, 50% up to 100%). The approach works under controlled tests, trading storage/compute and eventual consistency for resiliency.

AI-written summary · about

  1. 0:00GraphQL resiliency challenges
  2. 4:25Cache avalanche effect
  3. 9:21Cascading failures mitigation
  4. 11:50Drop cache-aside in GraphQL
  5. 14:44Write and read path explained
  6. 17:12EPG data access patterns
  7. 21:07GraphQL to local storage
  8. 22:55Safe incremental rollout
  9. 25:49When to use or avoid
  10. 27:56Write path trade-offs
  11. 29:45Separate data generation
  12. 30:05Summary and Q&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.