

Webhook Sync Architecture & Simulation
Reference implementation · synthetic data
Workflow Automation & Backend Engineer — Fault-tolerant commerce-to-CRM webhook synchronization kit combining exportable n8n (
15-node) and Make.com (15-module) blueprints with a FastAPI and SQLite WAL companion gateway (POST /webhooks/{provider}, POST /ledger/lookup, POST /ledger/commit).Incoming webhooks pass constant-time HMAC-SHA256 verification and a
300s replay window before post-verification JSON parsing or downstream state mutation. An atomic SQLite WAL ledger (event_id + payload_sha256, with stale_pending_seconds recovery and atomic retry claiming) suppresses duplicate retries, detects payload conflicts (409), and defers out-of-order refunds until order creation completes. Transient 429/503 faults trigger bounded backoff retries, non-retryable 4xx errors move explicitly to dlq, and operational/ledger endpoints support ADMIN_API_TOKEN bearer auth.Verified via an in-process
200-event synthetic benchmark (seed=42): 25 forged or expired payloads rejected (401), 50 duplicates blocked, 7 out-of-order refunds ordered, and 100.0% of 429/503 faults recovered (12 via retry, 8/8 via DLQ replay) with 0 duplicate records across 110 orders and 20/20 passing pytest specs under ruff and mypy --strict.Built with AI-assisted tooling; architecture, review, and tests by me.
0 likes · 4 views · Nov 20, 2026
Reference implementation (synthetic data): n8n (15-node) & Make (15-module) CRM sync blueprints + FastAPI HMAC, SQLite WAL idempotency & DLQ gateway.