Skip to main content
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
[![Notification system with queueing, routing, deduplication and a dead-letter queue — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_notification-system/opengraph-image)](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_7

COMPONENT STACK (9)

  • Producer serviceSTATEFUL
    Asks to notify a user
  • Channel providerSTATEFUL
    Sends email, SMS or push
  • API gatewaySTATELESS
    Checks the JWT, accepts requests
  • Message queueSTATEFUL
    Priority levels, delayed retries
  • Content-based routerSTATELESS
    Picks the channel, sends, dedupes
  • Idempotency storeSTATEFUL
    Claimed and sent keys, with a lease
  • Dead-letter queue (DLQ)STATEFUL
    Parks messages that keep failing
  • Traces, metrics and logsSTATEFUL
    Gateway errors and latency
  • Capacity cardSTATELESS
    Illustrative sizing for the drawn design

REQUEST & DATA FLOW (8)

  1. Producer service → API gateway (Sends with JWT)[HTTPS]
  2. API gateway → Message queue (Publishes)[TCP]
  3. Message queue → Content-based router (Delivers)[TCP]
  4. Content-based router → Channel provider (Sends)[HTTPS]
  5. Channel provider → Content-based router (Webhook receipt)[HTTPS]
  6. Content-based router → Idempotency store (Claims key, marks sent)[TCP]
  7. Message queue → Dead-letter queue (DLQ) (Dead-letters)[TCP]
  8. API gateway → Traces, metrics and logs (Emits)[HTTPS]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →