Building real-time API's with GraphQL
summary
Builds a GraphQL server in JavaScript using SDL, SQLite for data, and client wiring with Apollo client, implements mutations (discharge patient) and live Subscriptions over WebSockets using a pub/sub layer (demo uses in-memory PubSub), fixes N+1 problems with DataLoader, and shows a ward/patient UI that updates when a patient is discharged. Code runs end-to-end in the demo, but in-memory pub/sub and naïve resolvers are flagged as non‑production choices and scaling, caching and auth require external solutions.
AI-written summary · about
chapters (19)
- 0:00What is GraphQL
- 3:09Why does GraphQL exist
- 4:23Game of Thrones example
- 9:34Why GraphQL
- 10:26Versioning
- 11:41GraphQL Developer Experience
- 13:38Core Concepts
- 17:43Building something useful
- 20:01Schema definition language
- 21:16How to get data
- 22:14Graphical Tools
- 24:01Reading from the Database
- 31:46GraphQL Client
- 35:16GraphQL Mutations
- 46:21Challenges with GraphQL
- 49:04Realtime Data
- 50:49Push
- 53:49Subscriptions
- 54:56Architecture
related talks
50mBuilding Realtime Serverless APIs with GraphQL
18mCrafting compelling real-time web experiences with GraphQL
58mCrafting compelling real-time web experiences with GraphQL and React
59mGoodbye REST; Hello GraphQL
34mGraphQL real-time subscriptions
21mLive-coding demo
26mAngular and GraphQL – A modern API for a modern Platform
52mBuilding a Realtime Chat with GraphQL Subscriptions
