HookRail

Architecture Specification

Isolated delivery planes engineered for zero dropped events.

HookRail decouples event publication from subscriber availability using per-tenant fair queuing, deterministic backoff timers, and immutable dead-letter vaults.

BUS-01 · HTTP/2 + gRPC Ingestion

Partitioned Durable Ingress

Events commit to replicated Raft write-ahead logs before returning HTTP 202. Each tenant receives an isolated virtual queue so noisy endpoints never starve neighboring subscribers.

  • — Idempotency-Key deduplication over a 24-hour sliding window
  • — Strict per-endpoint concurrency caps and token-bucket pacing
  • — Schema validation against versioned JSON Schema contracts

BUS-02 · Full-Jitter Retry Scheduler

Adaptive Exponential Backoff

Transient 429 and 5xx failures automatically enter tiered delay queues. Retry-After headers from downstream servers are honored natively to avoid cascading rate-limit bans.

  • — Configurable linear, exponential, and decorrelated-jitter curves
  • — Automatic circuit breaker trips after sustained 503 outages
  • — Real-time delivery telemetry with full request/response headers

BUS-03 · 90-Day Indexed Event Store

Dead-Letter Ledger & Selective Replay

Exhausted deliveries archive into immutable dead-letter vaults. Operators or tenants can inspect raw payloads, patch destination URLs, and replay targeted time slices with one API call.

  • — Filter replay jobs by event type, HTTP status, or tenant ID
  • — Dry-run preview showing exact message count before re-dispatch
  • — Bulk export to S3 or GCS in compressed NDJSON format

BUS-04 · Standard Webhooks Spec / mTLS

Cryptographic Signing & Static Egress

Every outbound call carries an HMAC-SHA256 digest bound to the event ID and Unix timestamp to prevent replay attacks, routed through allowlistable static egress IPs.

  • — Zero-downtime dual-secret rotation windows up to 72 hours
  • — Optional mutual TLS (mTLS) client certificates per endpoint
  • — Automatic SSRF protection blocking private RFC 1918 targets

Review sustained throughput and p99 dispatch telemetry.

Benchmarked across multi-region clusters under 10M retry backlog load.

View Benchmarks