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
[](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_2COMPONENT STACK (8)
- Web ClientSTATEFULReads and writes data
- API gatewaySTATELESSChecks the JWT, routes calls
- Traces, metrics and logsSTATEFULGateway errors and latency
- Application serviceSTATELESSPicks a store per data type
- PostgreSQLSTATEFULSnapshot isolation or serializable
- Apache CassandraSTATEFULLeaderless, quorum per request
- etcdSTATEFULLinearizable reads by default
- Capacity cardSTATELESSIllustrative sizing for the drawn design
REQUEST & DATA FLOW (9)
- Web Client → API gateway (Calls with JWT)[HTTPS]
- API gateway → Application service (Routes)[HTTPS]
- Application service → PostgreSQL (Reads snapshot)[TCP]
- Application service → Apache Cassandra (Reads R of N)[TCP]
- Application service → etcd (Reads via consensus)[TCP]
- PostgreSQL → Application service (Returns rows)[TCP]
- Application service → API gateway (Replies)[HTTPS]
- API gateway → Web Client (Replies)[HTTPS]
- API gateway → Traces, metrics and logs (Emits)[HTTPS]