WebHooks vs WebSub: which one to stream your events in Real Time?
summary
Compares ad‑hoc WebHooks and the W3C WebSub protocol, shows a working Node/Express webhook receiver exposed with ngrok demo worked and a GitHub webhook that receives ping and watch events. WebHooks require a publicly reachable callback, lack a spec (no specification), force providers to loop, retry and handle duplicates and DDoS, and need manual UI; WebSub uses hubs, discovery links and a hub verification challenge, offloads distribution and saves provider resources but adds an extra GET for the full content. Recommends WebHooks for action triggers (CI, IoT) and WebSub when data payload efficiency matters.
AI-written summary · about
chapters (9)
- 0:00Intro
- 0:38Real Time
- 8:45Pros and Cons
- 11:36Checklist
- 14:31Publishers
- 15:18Publishing with WebSub
- 16:55Consumer setup
- 19:00Unsubscribe
- 19:44Demo
related talks
10mThe wonderful world of webhooks
39mImplementing a Webhook, Not So Simple!
55mWorking with Webhooks
51mImplementing a server-side webhook, not so simple
47mImplementing a server-side webhook, not so simple!
16mWebhook Testing for Modern Applications | Challenges and Considerations
30mUnderstanding the realtime web with websockets
40mBuilding an open Data Stream using Node.js, VanillaJS and Ably
