~/talk

Building a Serverless GraphQL Subscription Gateway for Event-Driven Architectures

Talkat GraphQLConf 2024 · on Tuesday, 2024-09-10· at 13:30· Metropolitan A· [graphql, serverless]
links:none on file
links:none on file
slides:none on file

A serverless subscription gateway on AWS routes real-time GraphQL updates from many microservices to browsers using API Gateway v2 for persistent WebSockets, Lambda + SQS + DynamoDB for queuing and connection state, and GraphQL.js’ execute to match payloads against composed schemas. Subgraphs publish schema pieces and JSON event contracts; the gateway records parameterized subscriptions (e.g. city=Berlin), enforces custom directives for auth/tenant checks, emits domain events to subgraphs, and handles fleets of ~300 vehicles sending location updates every ~4s with two‑digit‑millisecond delivery.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:24Moya’s GraphQL usage
  3. 3:31Problem with serverless subscriptions
  4. 6:18Back office realtime needs
  5. 8:03What are GraphQL subscriptions
  6. 9:25Serverless WebSocket challenges
  7. 10:48API Gateway WebSocket handling
  8. 11:31Subscription Gateway architecture
  9. 12:34Schema publishing process
  10. 14:41Recording active subscriptions
  11. 15:45Publishing updates to clients
  12. 17:12Payload matching with GraphQL.js
  13. 20:01Parameterized subscription matching
  14. 21:03Lessons learned building it
  15. 22:50Added features and directives
  16. 23:32Q&A session
~/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.