ARCHOS 525 BLUEPRINT · /d/dgm_notification-system
Notification system with queueing, routing, deduplication and a dead-letter queue
9 COMPONENTS · 8 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_notification-system) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_notification-system)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_notification-system" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Notification system with queueing, routing, deduplication and a dead-letter queue — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
producer_0[("Producer service")]
provider_1[("Channel provider")]
gw_2["API gateway"]
queue_3[("Message queue")]
router_4["Content-based router"]
store_5[("Idempotency store")]
dlq_6[("Dead-letter queue (DLQ)")]
metrics_7[("Traces, metrics and logs")]
capacity_8["Capacity card"]
producer_0 -->|"1. Sends with JWT · HTTPS"| gw_2
gw_2 -.->|"2. Publishes · TCP"| queue_3
queue_3 -.->|"3. Delivers · TCP"| router_4
router_4 -->|"4. Sends · HTTPS"| provider_1
provider_1 -->|"5. Webhook receipt · HTTPS"| router_4
router_4 -->|"Claims key, marks sent · TCP"| store_5
queue_3 -->|"Dead-letters · TCP"| dlq_6
gw_2 -->|"Emits · HTTPS"| metrics_7COMPONENT STACK (9)
- Producer serviceSTATEFULAsks to notify a user
- Channel providerSTATEFULSends email, SMS or push
- API gatewaySTATELESSChecks the JWT, accepts requests
- Message queueSTATEFULPriority levels, delayed retries
- Content-based routerSTATELESSPicks the channel, sends, dedupes
- Idempotency storeSTATEFULClaimed and sent keys, with a lease
- Dead-letter queue (DLQ)STATEFULParks messages that keep failing
- Traces, metrics and logsSTATEFULGateway errors and latency
- Capacity cardSTATELESSIllustrative sizing for the drawn design
REQUEST & DATA FLOW (8)
- Producer service → API gateway (Sends with JWT)[HTTPS]
- API gateway → Message queue (Publishes)[TCP]
- Message queue → Content-based router (Delivers)[TCP]
- Content-based router → Channel provider (Sends)[HTTPS]
- Channel provider → Content-based router (Webhook receipt)[HTTPS]
- Content-based router → Idempotency store (Claims key, marks sent)[TCP]
- Message queue → Dead-letter queue (DLQ) (Dead-letters)[TCP]
- API gateway → Traces, metrics and logs (Emits)[HTTPS]