Realtime React Apps with GraphQL
summary
Claim: GraphQL subscriptions let React apps receive event-driven updates without full polling; Facebook runs them at scale for over two years powering live likes live comments and streaming reactions. Demo uses Relay and a thin subscription class over websockets transport, shows a mutation-triggered demo stream and client callback that modifies the store. RFC is the largest GraphQL change since 2015 and implementations exist from Apollo graphcool and scaffold.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 0:28Outline
- 1:14Why are realtime apps interesting
- 1:52What are realtime apps
- 2:30Examples of realtime apps
- 2:43Remote data
- 4:05Pushbased realtime APIs
- 4:22Pull realtime APIs
- 5:24Polling
- 5:57Improving polling
- 6:29Live queries
- 8:19Subscriptions and live queries
- 9:50Pubsub patterns
- 10:58Subscriber patterns
- 11:26What is GraphQL
- 12:15Wish Driven Design
- 14:35Demo
- 18:16Code
- 21:46Where are we
- 22:35GraphQL RFC
- 23:15Conclusion
related talks
18mCrafting compelling real-time web experiences with GraphQL
58mCrafting compelling real-time web experiences with GraphQL and React
27mData fetching for React applications at Facebook
52mBuilding a Realtime Chat with GraphQL Subscriptions
34mGraphQL Subscriptions - Scaling real-time in the real world
34mGraphQL real-time subscriptions
47mReact, Relay and GraphQL — a perfectly normal component approach
26mEverything You Need to Know About GraphQL in 3 Components
