Automation · Webhooks
Webhook Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=5319
Answer
Push-based event notification where a producer delivers an HTTP callback to a consumer endpoint with explicit delivery and processing semantics.
Remember
- Webhook delivered ≠ event processed; receiver acknowledgement and downstream handling are separate boundaries.
- Webhook ≠ message queue; many providers use best-effort or bounded retry rather than durable broker semantics.
- HTTP 2xx ≠ business side effect completed; consumers often acknowledge before asynchronous processing.
- Real-time ≠ exactly-once; duplicates, delay and reordering must be expected unless the provider explicitly guarantees otherwise.
First checks
curl -sS -X POST -H 'Content-Type: application/json' -d @sample.json https://<endpoint>— test delivery- Endpoint returns 2xx quickly — ack
- Async processing queue — decoupling
Verify in this order
event → HTTP POST → ack → async processing
Where it usually breaks
A successful webhook delivery proves transport to the receiver response path; it does not prove exactly-once processing or the final business effect.
Webhook Fundamentals webhook boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Source / delivery | Event, subscription, delivery ID and attempt metadata are attributable | Missing source event, stale subscription, wrong callback or delivery history gap |
| Trust / acknowledgement | Auth/signature and schema checks occur before safe acknowledgement | Unverified payload, slow handler, 2xx before durable receipt or replay weakness |
| Processing / proof | Durable dedupe/worker evidence matches downstream target state | Duplicate side effect, worker failure hidden by 2xx or no target reconciliation |
| Troubleshooting | First failed boundary is preserved, changed minimally and retested | Blind retries, credential rotation, replay or payload edits before evidence is captured |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5319