Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_distributed-message-queue

Distributed Message Queue (partitioned replicated log)

12 COMPONENTS · 12 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[![Distributed Message Queue (partitioned replicated log) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_distributed-message-queue/opengraph-image)](https://archos.sageideas.dev/d/dgm_distributed-message-queue)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_distributed-message-queue)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_distributed-message-queue" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Distributed Message Queue (partitioned replicated log) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Producer Application")]
  sink_1[("Downstream Service")]
  leader_2[("Partition")]
  fb_3[("Partition")]
  ctl_4[("Consensus")]
  cons_5["Competing consumers"]
  off_6[("Offset")]
  dlq_7[("Dead-letter queue (DLQ)")]
  tsdb_8[("Time-series database (TSDB)")]
  alerting_9[("Alerting")]
  secrets_10[("Secrets manager")]
  capacity_11["Capacity Estimate"]
  client_0 -->|"1. Sends batch, trace id · TCP"| leader_2
  leader_2 -->|"2a. Serves fetch · TCP"| fb_3
  leader_2 -.->|"2b. Serves batch · TCP"| cons_5
  cons_5 -->|"3a. Sends result with key · HTTPS"| sink_1
  cons_5 -.->|"3b. Parks poison messages · TCP"| dlq_7
  cons_5 -->|"3c. Commits offset · TCP"| off_6
  leader_2 -->|"Reports in-sync set · TCP"| ctl_4
  ctl_4 -->|"Promotes a follower · TCP"| fb_3
  tsdb_8 -->|"Scrapes log end offset · HTTPS"| leader_2
  tsdb_8 -->|"Scrapes committed offset · HTTPS"| off_6
  tsdb_8 -->|"Supplies metrics · HTTPS"| alerting_9
  secrets_10 -->|"Supplies keys · HTTPS"| leader_2

COMPONENT STACK (11)

  • Producer ApplicationSTATEFUL
    Sends batches with a trace id header
  • Downstream ServiceSTATEFUL
    Receives each processed result
  • PartitionSTATEFUL
    Leader: checks ACLs, takes writes
  • PartitionSTATEFUL
    Followers pull the log from the leader
  • ConsensusSTATEFUL
    Controller quorum: tracks in-sync set
  • Competing consumersSTATELESS
    Consumer group: one consumer per partition
  • OffsetSTATEFUL
    Committed position, kept in an internal topic
  • Dead-letter queue (DLQ)STATEFUL
    Parks messages no consumer can process
  • Time-series database (TSDB)STATEFUL
    Stores consumer lag and request latency
  • AlertingSTATEFUL
    Pages on-call when consumer lag keeps rising
  • Secrets managerSTATEFUL
    Holds broker certificates and ACL credentials

REQUEST & DATA FLOW (12)

  1. Producer Application → Partition (Sends batch, trace id)[TCP]
  2. Partition → Partition (Serves fetch)[TCP]
  3. Partition → Competing consumers (Serves batch)[TCP]
  4. Competing consumers → Downstream Service (Sends result with key)[HTTPS]
  5. Competing consumers → Dead-letter queue (DLQ) (Parks poison messages)[TCP]
  6. Competing consumers → Offset (Commits offset)[TCP]
  7. Partition → Consensus (Reports in-sync set)[TCP]
  8. Consensus → Partition (Promotes a follower)[TCP]
  9. Time-series database (TSDB) → Partition (Scrapes log end offset)[HTTPS]
  10. Time-series database (TSDB) → Offset (Scrapes committed offset)[HTTPS]
  11. Time-series database (TSDB) → Alerting (Supplies metrics)[HTTPS]
  12. Secrets manager → Partition (Supplies keys)[HTTPS]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →