Design outbound webhooks: when events occur in your platform, deliver signed HTTP POSTs to subscriber URLs with retries, exponential backoff, dead-letter after max attempts, and manual replay. Subscribers verify HMAC signatures.
Functional requirements
- Register endpoint URL, secret, and event types filter
- Enqueue deliveries with payload and attempt counter
- Sign body with subscriber secret; include delivery id header
- Expose delivery logs and replay for a given event id
Non-functional requirements
- At-least-once delivery with dedupe id on consumer side recommended
- Timeout and circuit break unhealthy endpoints
- Fair scheduling so one noisy subscriber does not starve others