Web Development

Webhooks

What webhooks are and how they differ from polling: a provider POSTs each event to your URL. Covers payloads, signatures, retries and when polling still fits.

  • 7 min read
  • 5 questions
  • +35 XP
Transcript

Webhooks explained by cats. Kitty orders tuna online. Kitty is hungry. Kitty waits by the door. Every minute, Kitty checks. Is tuna here yet? No tuna. Checks again. Still no tuna. This is polling. Lots of effort. No tuna. Now with Webhooks.

Kitty orders tuna, then relaxes. Takes a nap. Chases yarn. Lives life. When tuna arrives, doorbell rings. Kitty wakes up, runs to door. Tuna is here. That's a Webhook. No constant checking.