Menu

1 / 7

Add Webhooks to Your SaaS in 10 Minutes (Without Queues or Retries)

DEV Community·Mary Olowu·7 months ago
#xcsNLVpI
#tutorial#webdev#customer#endpoint#delivery
Reading 0:00
15s threshold

TL;DR — One API call subscribes a customer endpoint. Centrali signs each delivery with HMAC-SHA256, retries 5 times over ~40 minutes on failure, logs every attempt, and exposes a one-line replay endpoint. No queue. No retry logic. No Svix. The whole subscribe call is right below — scroll to it if you just want the shape.

Your customers want webhooks. You know the checklist:

A queue so user requests don't block on HTTPS calls to third-party servers

HMAC signing so customers can verify the request came from you

Retry with exponential backoff, jitter, a max attempt count

A circuit breaker so flaky endpoints don't cost you compute

A delivery log with replay for the "we never got that event" support ticket

A subscription model with rotatable secrets, event filters, active/inactive state

It's two weeks of work, plus ongoing maintenance.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.