~/talk

Serverless WebSockets at Scale

Talkat Code Mesh LDN 2020 · 2020-11-05..11-06· [serverless, nodejs]
speakerdeck:simontabor
slides:none on file

Evaluation of AWS options leads to a custom hybrid: a serverless publishing path (API Gateway → Lambda → DynamoDB → SNS) plus an ECS-based websocket fleet named Puppy that uses ElastiCache pub/sub to fan out to millions of clients. AppSync hits auth, caching and race-condition limits; API Gateway websockets can’t cheaply broadcast; IoT has auth quirks. Load tests target 3 million connections, initial run fails but health-check driven Route 53 failover and proactive task draining fix it, delivering 0.7 ms p90 latency and high availability.

AI-written summary · about

  1. 0:00Intro
  2. 1:08Requirements
  3. 4:57Why WebSockets
  4. 8:28WebSockets Website
  5. 9:27Graphql
  6. 10:37Authentication
  7. 12:14QuerySubscribe
  8. 13:51Global Deployment
  9. 15:02Caching
  10. 18:54Appsync
  11. 24:37Architecture
  12. 30:11Questions
~/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.