Course
Webhook Engineering
A practitioner's guide to producing and consuming webhooks — signatures, replay protection, delivery guarantees, retries, ordering, endpoint vetting, and the operational scars that only asynchronous callbacks can leave.
Reviews
Enrolled members can rate this course.
No reviews yet.
Designing Trustworthy Events
Model webhook contracts, sign messages correctly, verify them without subtle bypasses, and prevent replay.
- 01Webhook Contracts and the Truth About Delivery SemanticsDesign event envelopes, lifecycle semantics, and consumer expectations around the uncomfortable reality that webhooks are at-least-once, unordered messages.24mOpen
- 02Signing Webhooks CorrectlyCanonicalize the exact bytes being authenticated, choose durable signing metadata, rotate keys safely, and avoid the implementation mistakes that make HMAC decorative.26mOpen
- 03Verification and Replay Protection on the ReceiverImplement raw-body HMAC verification, timestamp windows, constant-time comparison, and replay caches without breaking valid retries.25mOpen
Delivery Guarantees and Failure
Build durable producers with outboxes, idempotency, bounded retries, dead letters, ordering discipline, and observability.
- 01Transactional Outboxes and Idempotent ProducersGuarantee event publication with an outbox, preserve logical event identity across retries, and keep database state and webhook delivery from diverging.27mOpen
- 02Retries, Backoff, and Dead Letters That Operators Can SurviveDesign retry schedules with jitter, classify failures honestly, bound retry storms, and quarantine poison messages without losing them.25mOpen
- 03Ordering, Concurrency, and Versioning Without False PromisesUse sequencing, object versions, consumer-side reconciliation, and explicit schema versioning instead of pretending distributed webhooks arrive in perfect order.24mOpen
Consuming and Operating Safely
Receive webhooks without blocking, validate endpoint URLs, defend against SSRF, test failure modes, and operate incidents calmly.
- 01Safe Receivers: Fast Acknowledgement and Asynchronous ProcessingBuild webhook receivers that verify, persist, acknowledge quickly, and process asynchronously so slow business logic does not turn into delivery failure.23mOpen
- 02Endpoint Registration, SSRF, and Callback URL SafetyValidate subscriber-controlled callback URLs, pin resolution behavior, block internal network reachability, and verify ownership before sending secrets-bearing events.27mOpen
- 03Testing, Replays, and Webhook Incident OperationsTest duplicate, stale, malformed, and reordered deliveries; operate backfills and incidents with replay tools, reconciliation, and clear customer communication.25mOpen