~/talk

The Magic of Dataloader with GraphQL

Talkat Developer Summit 2020 · 2020-11-21..11-22· [graphql, nodejs]
links:none on file
slides:none on file

GraphQL fronts multiple PayPal microservices but field-level resolvers cause duplicate REST calls, so GraphQL + DataLoader is used to batch requests and cache results in a single execution frame. A tiny JS DataLoader is built from scratch using process.nextTick and promise microtasks to collect keys, call one batch function, and return cached promises; the demo reduces four identical fetches to three network calls and returns cached values. Notes: cache invalidation is manual via clear and clustered apps need explicit strategy.

AI-written summary · about

  1. 0:00Introduction to disputes
  2. 2:06Problem with microservices
  3. 3:35GraphQL as solution
  4. 7:50GraphQL performance issue
  5. 9:16Introducing DataLoader
  6. 10:20Batching requests demo
  7. 15:59How DataLoader works
  8. 17:20Node.js event loop basics
  9. 19:51Recreating DataLoader
  10. 27:20Q&A session
~/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.