Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_replication-topologies

Replication Topologies (leader-follower and leaderless)

9 COMPONENTS · 11 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[![Replication Topologies (leader-follower and leaderless) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_replication-topologies/opengraph-image)](https://archos.sageideas.dev/d/dgm_replication-topologies)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_replication-topologies)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_replication-topologies" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Replication Topologies (leader-follower and leaderless) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  app_0[("Application Service")]
  lead_1[("PostgreSQL leader")]
  fol_2[("Hot standby")]
  metrics_3[("Traces, metrics and logs")]
  coord_4[("Cassandra coordinator")]
  r1_5[("Cassandra replica")]
  r2_6[("Cassandra replica")]
  r3_7[("Cassandra replica")]
  capacity_8["Capacity card"]
  app_0 -->|"1a. Writes a row (mTLS) · TCP"| lead_1
  app_0 -->|"1b. Writes a key (mTLS) · TCP"| coord_4
  lead_1 -->|"2a. Acks the write · TCP"| app_0
  lead_1 -->|"2b. Streams the log · TCP"| fol_2
  coord_4 -->|"2c. Writes replica 1 · TCP"| r1_5
  coord_4 -->|"2d. Writes replica 2 · TCP"| r2_6
  r1_5 -->|"3a. Acks · TCP"| coord_4
  r2_6 -->|"3b. Acks · TCP"| coord_4
  coord_4 -->|"4. Acks at quorum · TCP"| app_0
  fol_2 -->|"Exports lag (OTLP) · OTLP"| metrics_3
  coord_4 -->|"Keeps a hint for replica 3 · TCP"| r3_7

COMPONENT STACK (9)

  • Application ServiceSTATEFUL
    Writes through two replicated stores
  • PostgreSQL leaderSTATEFUL
    Leader-follower replication: one node takes writes
  • Hot standbySTATEFUL
    Applies the log; serves read-only queries
  • Traces, metrics and logsSTATEFUL
    Replication lag per standby
  • Cassandra coordinatorSTATEFUL
    Leaderless replication: any node coordinates a write
  • Cassandra replicaSTATEFUL
    Replica 1 of 3, reachable
  • Cassandra replicaSTATEFUL
    Replica 2 of 3, reachable; a Quorum is 2
  • Cassandra replicaSTATEFUL
    Replica 3 of 3, unreachable
  • Capacity cardSTATELESS
    Worked example for the drawn stores

REQUEST & DATA FLOW (11)

  1. Application Service → PostgreSQL leader (Writes a row (mTLS))[TCP]
  2. Application Service → Cassandra coordinator (Writes a key (mTLS))[TCP]
  3. PostgreSQL leader → Application Service (Acks the write)[TCP]
  4. PostgreSQL leader → Hot standby (Streams the log)[TCP]
  5. Cassandra coordinator → Cassandra replica (Writes replica 1)[TCP]
  6. Cassandra coordinator → Cassandra replica (Writes replica 2)[TCP]
  7. Cassandra replica → Cassandra coordinator (Acks)[TCP]
  8. Cassandra replica → Cassandra coordinator (Acks)[TCP]
  9. Cassandra coordinator → Application Service (Acks at quorum)[TCP]
  10. Hot standby → Traces, metrics and logs (Exports lag (OTLP))[OTLP]
  11. Cassandra coordinator → Cassandra replica (Keeps a hint for replica 3)[TCP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →