r/softwarearchitecture • u/Appropriate-Seat-787 • Oct 20 '26
Discussion/Advice Webhook Reliability & Idempotency Trade-offs: Architecture Review of Relay
Hello architects and backend engineers,
I recently designed and deployed **Relay**, an open-source system focused on reliable asynchronous event delivery, idempotency guarantees, and operational observability.
### System Pipeline:
Webhook Provider -> NestJS API (Signature Validation) -> PostgreSQL (Persistence) -> Redis / BullMQ (Async Queue) -> Delivery Worker -> Downstream Receiver
### Key Design Principles:
- **At-Least-Once Semantics:** Enforcing safety via raw-body HMAC-SHA256 signature validation and database idempotency constraints.
- **Fault-Tolerant Retries:** Exponential backoff policies mapped to a Dead-Letter Queue (DLQ).
- **Observability & Operational Controls:** REST APIs and a standalone dashboard to monitor, inspect, and manually retry dead-lettered events.
I am looking for a peer review on failure modes—specifically around handling partial failures between relational storage and message queues under high concurrency.
Read the technical README, architecture diagrams, and run the reproducible failure suite:
https://github.com/Dieu-Merci-Ndenga/relay
I look forward to discussing your design choices and trade-offs.
6
Upvotes
Duplicates
nestjs • u/Appropriate-Seat-787 • Oct 21 '26
Webhook Reliability & Idempotency Trade-offs: Architecture Review of Relay
3
Upvotes