Skip to content
IQ

Webhook capacity planning

Webhook throughput is a two-sided problem. IQ dispatches audit events to your destination, signs each one, retries the ones that fail, and dead-letters the ones that keep failing. Your receiver has to accept them fast enough that the queue never grows. This page covers what the gateway does on its side, so you can size your side against real numbers instead of guesses.

What the gateway does for you

A slow or dead receiver cannot slow down the LLM calls that produced the events.

What you should plan against is the delivery envelope. The gateway waits up to 10 seconds for your receiver to start responding, and gives each attempt at most 20 seconds in total, before treating the attempt as failed, and retries on the backoff schedule documented in /docs/webhooks, which is short: the waits between attempts total about 2.6 minutes, plus up to 20 seconds per attempt if the receiver is slow. Payloads are metadata-sized, a few hundred bytes per event, so bandwidth is never the constraint. Your handler's latency is.

Sizing your receiver

Start from your own event volume rather than the caps. Read the deliveries view under Settings, Webhooks, "View deliveries" during a busy window, or count the matching rows in /audit over a known interval, and divide by the interval to get a deliveries-per-second figure. Multiply by your peak-to-average ratio, where 2x is a reasonable default, to get a design rate.

Acknowledge the delivery with a 2xx as soon as you have verified the signature and durably written the event, then process it asynchronously.

Failure modes

The signal that you are falling behind is a growing number of pending rows in the deliveries list while few new success rows appear. Arrival rate has passed your dispatch rate. In practice this is nearly always a slow receiver rather than a volume problem, so measure your handler's p95 before anything else.

A rising failed count means something different. Every 3xx and 4xx is terminal on the first attempt, because a receiver misconfiguration cannot resolve itself by retrying, so a burst of failures usually means a bad path, an expired certificate, or a signature-verification bug on your side. Failed and dead-lettered deliveries carry a "Retry" button in the deliveries view once you have fixed the cause.

Repeated 429 responses from your own receiver are the last common case, and they are the one worth watching hardest, because a 429 is treated as terminal rather than retried. If your service rate-limits below the arrival rate, those deliveries are lost until you replay them by hand. Raise your receiver's own limit for the IQ source, or absorb the burst by acknowledging fast and queueing internally, rather than rate-limiting the deliverer.

Verification

Two surfaces tell you where you stand. The deliveries view under Settings, Webhooks shows the last 100 deliveries per destination, with per-delivery status, response code, attempt count, and timing, which is enough to spot both a latency problem and a signature problem. The audit log at /audit records the events behind most deliveries. Compare it with the deliveries list to reconcile "the event happened" against "the event arrived".

Use a test fire (Settings, Webhooks, row, "Test fire") after any change on your side. When IQ accepts a test fire, it schedules a synthetic test_fire event for that destination. Check its status in the delivery log.

See also

  • /docs/webhooks: wire format, signature verification, retry semantics, deduplication.
  • /docs/operations: on-demand compliance exports and audit verification.
  • /audit: events the deliverer dispatches.