skip to content

During a source outage, webhook deliveries to an ingestion connector were silently dropped: how would you notice, and what backstop catches the missed changes?

level: seniorimportance: should knowfreq 40%

answer

  1. silence looks exactly like health
  2. a probe you control end to end
  3. subscriptions that quietly lapse
  4. poll with an overlap, then reconcile

basics

~20 s

Watch signals the deliveries cannot fake: a scheduled canary edit that must arrive, delivery volume against the source's norm, subscription status, and a poll counting edits no webhook reported; that poll and a reconciliation crawl are the backstop.

solid answer

~50 s

Silence from a webhook looks exactly like a quiet afternoon, so I monitor things the deliveries cannot fake. A **canary**: the connector edits a test document in the source on a schedule and alerts if the matching delivery does not arrive within minutes. **Volume against baseline** per source, so a normally busy source going to zero pages someone. **Subscription status**, because some sources expire subscriptions after a fixed lifetime or disable them after repeated failed deliveries. And a **drift count**: a regular change-feed or modified-since poll that counts edits the webhooks never reported. That same poll is the first backstop, run from the last point the connector knows it was complete, with an overlap window; the reconciliation crawl catches what the poll cannot see. On my side, the receiver writes each delivery to a durable queue before acknowledging it, so my own outage does not drop events too.

go deeper

for a junior

Recall that a dropped webhook produces no error on your side, so silence cannot prove health, and that a scheduled poll is the backstop.

for a middle

Explain store-then-acknowledge at the receiver and why fetching the current version makes duplicate and overlapping events harmless.

for a senior

Design the detection: a canary edit, volume against baseline, subscription renewal and status, and a drift count from the poll, then the catch-up poll with an overlap window and the reconciliation crawl behind it.

for a principal

Decide how much the team relies on webhooks per source; where the poll already meets the latency needed, a webhook adds moving parts and a canary to maintain for little gain.

## Why dropped webhooks are silent A **webhook** is an HTTP request a source sends to the connector's endpoint when something changes. Delivery is the source's job, and its guarantees are usually weak: a sender typically retries a failed delivery for a limited time and then gives up, and some sources also **disable or expire a subscription** after repeated failures or after a fixed lifetime. None of that produces an error the connector can see. From the connector's side, a dropped delivery and an edit nobody made look identical: nothing arrives. That is why detection must rest on signals that do not depend on the deliveries themselves. ## Where deliveries get lost | Where | Typical cause | Visible to the connector? | |---|---|---| | Source side | Outage, retries exhausted, subscription expired or disabled | No, unless subscription status is checked | | Network and endpoint | Endpoint down, certificate expired, timeouts during a deploy | Sometimes, in your own access logs | | Receiver | Delivery acknowledged, then lost in a crash before it was stored | No | | Processing | Queued but the fetch failed and the job was dropped | Yes, if failures are counted | ## Signals that notice - **Canary edits.** On a schedule, the connector edits a dedicated test document through the source's API and records the time. If the matching delivery has not arrived within a set window, alert. It tests the whole path, source to queue, and it works at 3 a.m. when nobody else edits. - **Volume against baseline.** Track deliveries per source per hour and compare with the same hour on previous weeks. Zero deliveries from a source that usually sends hundreds is a page; a public holiday is the false positive to tune out. - **Subscription status.** Where the source exposes it, read each subscription's state and expiry. Renew well before expiry and alert when a renewal fails. - **Drift count.** A scheduled poll of the change feed or a modified-since search counts the changes it finds that no webhook announced. A steady trickle means deliveries are unreliable; a spike means an outage. - **Gap detection.** Some sources number their events. A jump in sequence numbers is direct evidence of loss; most sources do not offer this, so it cannot be the only signal. ## The backstops that catch up 1. **A catch-up poll.** Poll the change feed from the last position the connector knows was complete, or poll modified-since from just before the outage began, with an **overlap window** to absorb clock skew and slow writes. Overlap is safe because each change triggers a fetch of the current version, which is idempotent. 2. **The scheduled poll keeps running.** Webhooks reduce latency; they do not replace the regular poll, which bounds how long any single dropped delivery can matter. 3. **The reconciliation crawl.** Deletions and permission-only changes may be invisible to a modified-since poll. The periodic full comparison of source and index is the last layer. ## Making the receiver not part of the problem - **Store before acknowledging.** Write each delivery to a durable queue, then return success. A sender treats an acknowledged delivery as done and usually does not resend it, so acknowledging first and crashing loses the event for good. - **Acknowledge fast.** Do the fetch and indexing asynchronously; a receiver that takes too long gets timed out, and the sender may count that as a failure. - **De-duplicate cheaply.** Senders may deliver the same event more than once; since processing fetches the current version, duplicates cost a request, not correctness. - **Verify signatures.** Where the source signs deliveries, check the signature before queueing, so the endpoint cannot be used to flood the queue. How a sender should retry and back off is the general retry topic; here what matters is that its retries end, and the connector must not depend on them.

  • The catch-up poll finds two thousand changes after a four-hour outage. What do you watch while processing them?
    The source's request quota, because each change triggers a fetch and the burst competes with live traffic and its users. Push them through the normal queue at a paced rate; their order barely matters, because each change fetches the document's current version.
  • Why is a canary edit better than alerting on zero deliveries?
    Zero deliveries is ambiguous: an outage and a quiet night look the same, so a threshold tends either to miss short outages or to page on holidays. A canary is an edit you know happened, so its missing delivery is unambiguous, and it exercises the whole path from source to queue on every run.

It is like mailing yourself a postcard every hour. If no card arrives, the post is broken, whether or not anyone else wrote to you that hour; waiting for other people's letters tells you nothing on a quiet day.

  • No receiver errors in the logs means no deliveries were lost.
  • The source retries failed deliveries until they succeed, so nothing is lost.
  • Process each delivery fully before acknowledging it, however long that takes.
  • Once webhooks are working, the scheduled poll can be turned off.
  • An active subscription stays active until someone deletes it.