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
[](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_7COMPONENT STACK (9)
- Application ServiceSTATEFULWrites through two replicated stores
- PostgreSQL leaderSTATEFULLeader-follower replication: one node takes writes
- Hot standbySTATEFULApplies the log; serves read-only queries
- Traces, metrics and logsSTATEFULReplication lag per standby
- Cassandra coordinatorSTATEFULLeaderless replication: any node coordinates a write
- Cassandra replicaSTATEFULReplica 1 of 3, reachable
- Cassandra replicaSTATEFULReplica 2 of 3, reachable; a Quorum is 2
- Cassandra replicaSTATEFULReplica 3 of 3, unreachable
- Capacity cardSTATELESSWorked example for the drawn stores
REQUEST & DATA FLOW (11)
- Application Service → PostgreSQL leader (Writes a row (mTLS))[TCP]
- Application Service → Cassandra coordinator (Writes a key (mTLS))[TCP]
- PostgreSQL leader → Application Service (Acks the write)[TCP]
- PostgreSQL leader → Hot standby (Streams the log)[TCP]
- Cassandra coordinator → Cassandra replica (Writes replica 1)[TCP]
- Cassandra coordinator → Cassandra replica (Writes replica 2)[TCP]
- Cassandra replica → Cassandra coordinator (Acks)[TCP]
- Cassandra replica → Cassandra coordinator (Acks)[TCP]
- Cassandra coordinator → Application Service (Acks at quorum)[TCP]
- Hot standby → Traces, metrics and logs (Exports lag (OTLP))[OTLP]
- Cassandra coordinator → Cassandra replica (Keeps a hint for replica 3)[TCP]