Streaming Events vs Live Queries, a deeper look at Subscription Patterns
summary
Compares two GraphQL subscription patterns implemented in Hasura: live queries for current state and streaming events for event archives, with a demo chat app that streams batched updates. Claims the system groups listeners, uses predicate pushdown and per-client batch size to reduce DB load, and has scaled to 1 million rows updated per second. Requires a single-column monotonic cursor and has no server-side backpressure; runs on Docker or Hasura Cloud (free tier) and exposes authZ at the query level.
AI-written summary · about
chapters (5)
- 0:00Start
- 4:31What are Subscriptions?
- 6:20Event Driven Architecture!
- 11:34Subscriptions: Streams
- 17:52Differences
related talks
58mStreaming Subscriptions in GraphQL
34mGraphQL real-time subscriptions
51mAccelerating Application Development with GraphQL Data Mesh
34mGraphQL Subscriptions - Scaling real-time in the real world
39mArchitecture of scalable and resilient NodeJS apps with GraphQL & event-driven serverless
19mBuilding Planet Scale Cloud Native Apps with GraphQL & Distributed SQL
29mBuilding modern web-applications with Hasura's GraphQL engine
18mEmpowering Kubernetes Workloads with GraphQL
