System 03 · Distributed Broker
Resilient Webhook Relay & Idempotent Broker
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.