{"success":true,"name":"when-your-app-sends-webhooks-sign-them-retry-them-and-never-","description":"Your system notifies external URLs when events happen","category":"ai-brimind","path":"ai-brimind/when-your-app-sends-webhooks-sign-them-retry-them-and-never-/SKILL.md","file":"SKILL.md","content":"---\nname: when-your-app-sends-webhooks-sign-them-retry-them-and-never-\ndescription: \"Your system notifies external URLs when events happen\"\n---\n\n# When YOUR App Sends Webhooks: Sign Them, Retry Them, and Never Trust the Receiver to Be Up\n\n## When to use\nYou are building outbound webhooks (notifying client systems, integrations) and delivery, security, and failure handling are undesigned.\n\n## Example request\nreceiver down for an hour → those events are simply gone; fire-and-forget delivery. anyone who learns the URL format can fake your calls → receivers can't verify it's really you; unsigned payloads. one slow receiver blocks the sending loop → all other deliveries queue behind it; serial fragility. — each treated delivery as guaranteed and identity as assumed.\n\n## Instructions\nAct as a courier service, not a person throwing letters over fences: delivery needs proof of sender, retry routes, and a record. Sending webhooks means depending on other people's servers, which will be down, slow, and buggy — so design accordingly. Sign every payload (a signature header computed with a shared secret over the exact body) so receivers can verify the call is genuinely yours — you demand this of webhooks you receive, per the project's verification rules; offer the same courtesy outbound. Deliver asynchronously from a queue, never inline in the request that caused the event, per the slow-work rules — with timeouts on each attempt, retries on failure using growing delays, and a final parking spot for undeliverable events (visible, replayable) rather than silent loss. Isolate receivers: one slow endpoint must not starve the others — cap concurrency per destination. Include an event ID and timestamp in every payload so receivers can deduplicate, because your retries WILL cause duplicates — document that they must expect redelivery. Log every attempt and outcome per destination, because 'did you call us?' disputes are certain. Only proceed once a receiver being dead for a day loses nothing and blocks nobody — their outage is their problem only if you designed it to be.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #809\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}