Webhook Reliability Patterns

Webhooks are simple to send; hard to make reliable. Four patterns are the standard answer.

Why webhooks fail

Webhooks look like a function call but run over the public internet to a system you do not control. Every failure mode of the network plus every failure mode of the receiver applies.

Four patterns

Receiver responsibilities

The receiver's contract is short: respond fast, do work async, verify the sender, and deduplicate. Skip any one and the system frays.

Sender discipline

The sender owns delivery state, redelivery, and the contract. Without these, debugging webhook drops becomes guesswork on both sides.

Antipatterns

What to do this week

Three moves. (1) Apply this pattern to your highest-risk network path. (2) Measure the failure mode rate before/after. (3) Document the change so the next incident-responder inherits the knowledge.