~/talk

Streaming HTTP and GraphQL

Talkat JS Kongress 2019 · on Tuesday, 2019-03-12· [graphql, web-platform]

GraphQL can cut round trips by batching queries but the page still waits on the slowest field; the specific fix shown is the @defer directive paired with a MultiPart HTTP response that sends initial JSON then incremental JSON patches (path + data). Implementation uses ReadableStreams or an XHR fallback to treat responses as an observable, and client libraries must track deferred fields (Apollo alpha offers support, Relay lacks null-vs-loading handling). Code and parser available as fetch-multipart-graphql.

AI-written summary · about

  1. 0:00Intro
  2. 2:40GraphQL
  3. 4:08GraphQL fields
  4. 5:58GraphQL subscriptions
  5. 6:59Optimizing GraphQL
  6. 11:19Multipart HTTP response
  7. 12:48GraphQL network layer
  8. 15:26Apollo Client
  9. 16:49Relay Client
  10. 18:39Stream Client
  11. 19:32Summary
  12. 19:50References
~/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.