Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_consistency-models

Consistency models map across a relational store, a leaderless store and a consensus store

8 COMPONENTS · 9 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[![Consistency models map across a relational store, a leaderless store and a consensus store — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_consistency-models/opengraph-image)](https://archos.sageideas.dev/d/dgm_consistency-models)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_consistency-models)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_consistency-models" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Consistency models map across a relational store, a leaderless store and a consensus store — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Web Client")]
  gw_1["API gateway"]
  metrics_2[("Traces, metrics and logs")]
  svc_3["Application service"]
  pg_4[("PostgreSQL")]
  cass_5[("Apache Cassandra")]
  etcd_6[("etcd")]
  capacity_7["Capacity card"]
  client_0 -->|"1. Calls with JWT · HTTPS"| gw_1
  gw_1 -->|"2. Routes · HTTPS"| svc_3
  svc_3 -->|"3a. Reads snapshot · TCP"| pg_4
  svc_3 -->|"3b. Reads R of N · TCP"| cass_5
  svc_3 -->|"3c. Reads via consensus · TCP"| etcd_6
  pg_4 -->|"4. Returns rows · TCP"| svc_3
  svc_3 -->|"5. Replies · HTTPS"| gw_1
  gw_1 -->|"6. Replies · HTTPS"| client_0
  gw_1 -->|"Emits · HTTPS"| metrics_2

COMPONENT STACK (8)

  • Web ClientSTATEFUL
    Reads and writes data
  • API gatewaySTATELESS
    Checks the JWT, routes calls
  • Traces, metrics and logsSTATEFUL
    Gateway errors and latency
  • Application serviceSTATELESS
    Picks a store per data type
  • PostgreSQLSTATEFUL
    Snapshot isolation or serializable
  • Apache CassandraSTATEFUL
    Leaderless, quorum per request
  • etcdSTATEFUL
    Linearizable reads by default
  • Capacity cardSTATELESS
    Illustrative sizing for the drawn design

REQUEST & DATA FLOW (9)

  1. Web Client → API gateway (Calls with JWT)[HTTPS]
  2. API gateway → Application service (Routes)[HTTPS]
  3. Application service → PostgreSQL (Reads snapshot)[TCP]
  4. Application service → Apache Cassandra (Reads R of N)[TCP]
  5. Application service → etcd (Reads via consensus)[TCP]
  6. PostgreSQL → Application service (Returns rows)[TCP]
  7. Application service → API gateway (Replies)[HTTPS]
  8. API gateway → Web Client (Replies)[HTTPS]
  9. API gateway → Traces, metrics and logs (Emits)[HTTPS]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →