Building a Realtime Chat with GraphQL Subscriptions
summary
Demonstrates building a realtime messenger that actually sends and receives messages using GraphQL Subscriptions with React and Apollo Client, wired via subscriptions-transport-ws to a Graphcool backend. Creates users and messages with mutations, subscribes to new-message events, and updates the UI via subscribeToMore so messages appear instantly; adds a serverless hook that inspects incoming messages and sends Mailgun alerts for a forbidden word. Live demo works; scaling question about ~50k connections remains implementation dependent.
AI-written summary · about
chapters (12)
- 0:00Start
- 2:15What's GraphQL?
- 4:39Example: Blogging App with REST
- 9:42Queries
- 11:38Mutations
- 17:58Query Variables
- 23:41The Stack
- 24:09GraphQL Clients
- 26:19Chat UI
- 26:44React Components
- 38:44Server-side Subscriptions
- 44:28Resources
related talks
58mCrafting compelling real-time web experiences with GraphQL and React
24mRealtime React Apps with GraphQL
34mGraphQL Subscriptions - Scaling real-time in the real world
34mGraphQL real-time subscriptions
18mCrafting compelling real-time web experiences with GraphQL
50mBuilding Realtime Serverless APIs with GraphQL
26mEverything You Need to Know About GraphQL in 3 Components
01h 04mBuilding real-time API's with GraphQL
