Distributed systems · Webhook delivery

Relay

2026 / v1.0

A production webhook delivery platform that turns retries, receiver failures, signatures, and recovery into a durable lifecycle operators can inspect instead of infer.

Role
System design, product design, and full-stack engineering
Status
Portfolio release v1.0
Platform
Cloudflare Workers
Topology
Workers, D1, Queues, Cron
Repository
Public
Year
2026
Relay landing page introducing inspectable webhook delivery infrastructure
Relay v1.0 · Production delivery infrastructure

01

The reliability problem

Sending one HTTP request is easy. Preserving delivery intent through timeouts, rate limits, process interruption, secret rotation, and incident review is a distributed-systems problem.

Relay was designed so an accepted event always has durable work behind it, retries remain bounded and explainable, receivers can deduplicate requests, and operators have enough evidence to understand every outcome.

02

Architecture

D1 is the durable source of truth. The Queue transports ready delivery identifiers, while a scheduled Worker republishes due outbox work, recovers expired leases, and applies bounded retention.

03

Operational evidence

Relay delivery inspector showing two transient HTTP 503 attempts followed by a successful HTTP 200 attempt
One delivery, three persisted attempts, and the exact retry story in one view.

04

Important engineering decisions

01

At least once over false exactly once

A stable webhook ID gives receivers an idempotency key while lease recovery accepts that duplicate network delivery can occur.

02

Transactional outbox over dual writes

Event acceptance, endpoint fanout, and publication intent commit together so accepted work cannot disappear between the database and queue.

03

D1 scheduling plus Queue transport

D1 owns due time, retry policy, and recovery. Queue messages remain compact wake-ups for work that is ready now.

04

Evidence as product behavior

Every delivery attempt records bounded, redacted evidence, making retries, replay lineage, and terminal outcomes inspectable from the console.

05

Controlled public failure injection

Failure Lab exposes seven fixed receiver behaviors behind Turnstile and quotas without accepting arbitrary URLs or payloads.

06

Free-only production topology

Two Workers, D1, Queues, Cron, Turnstile, and a Service Binding demonstrate the system without paid infrastructure or hidden trial dependencies.

05 / Public demonstration

Break the receiver. Watch Relay recover.

Relay Failure Lab with seven safe deterministic receiver failure scenarios
Seven controlled scenarios make success, retry, rate limiting, timeout, permanent failure, and exhaustion observable in production.

06

Quality and production proof

The release combines application tests, database-backed Worker tests, browser journeys, responsive and accessibility coverage, publishing safety, cost guardrails, and a controlled production retry run.

283
application and shared-contract tests
12
browser, accessibility, and responsive journeys
9
publishing, production-config, and provisioning checks

In production, the flaky receiver returned HTTP 500 twice and HTTP 200 on the third attempt. Relay preserved one webhook identity, generated fresh signatures, and recorded each receiver receipt.

07

Result

Relay demonstrates production reasoning beyond CRUD: transactional boundaries, concurrency control, cryptographic handling, failure classification, cost-aware operations, and evidence-backed delivery.