5/5 Systems Live (Hetzner Germany) · Rust Axum P99: 0.4ms · PostgreSQL REA: Active
2-SENIOR ENGINEER DUO

System 03 · Distributed Broker

Resilient Webhook Relay & Idempotent Broker

Rust Tokio SQLx Ledger React 19 / MUI Minimals Console HMAC-SHA256

Business Problem

Financial integrations (Stripe, Adyen, Banking APIs) routinely dispatch asynchronous webhooks that arrive out-of-order, fail intermittently, or duplicate charges if downstream handlers lack strict idempotency.

System Architecture

High-throughput Rust event broker (Tokio, SQLx, PostgreSQL) that ingests external webhooks, performs instantaneous signature verification, and guarantees exactly-once dispatch with a React 19 + MUI Minimals DLQ control plane.

Engineering Highlights

Constant-time HMAC-SHA256 signature verification to prevent timing attacks, Redis distributed lock with PostgreSQL serializable transactions, exponential backoff jitter, and a browser-based Dead Letter Queue (DLQ) replay control plane.

Tangible Business ROI

Guarantees zero lost webhook events, prevents catastrophic double-charging incidents, and provides operations teams with instantaneous payload inspection capabilities.

Launch Live System (https://relay.sardana.dev)

← Return to All Systems