ARCHOS 525 BLUEPRINT · /d/dgm_cap-pacelc
CAP and PACELC trade-offs
10 COMPONENTS · 11 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_cap-pacelc) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_cap-pacelc)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_cap-pacelc" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="CAP and PACELC trade-offs — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("Web Client")]
capacity_1["Capacity estimate"]
app_2["Application server"]
idp_3[("Identity provider (IdP)")]
metrics_4[("Metrics")]
alerting_5[("Alerting")]
etcda_6[("etcd")]
cassa_7[("Cassandra")]
etcdb_8[("etcd")]
cassb_9[("Cassandra")]
client_0 -->|"1. Calls with JWT · HTTPS"| app_2
app_2 -->|"Checks token · HTTPS"| idp_3
app_2 -->|"2a. Writes · TCP"| etcda_6
app_2 -->|"2b. Writes, retries · TCP"| cassa_7
etcda_6 -->|"3a. Copies log · TCP"| etcdb_8
cassa_7 -->|"3b. Copies write · TCP"| cassb_9
etcda_6 -->|"3c. Replies · TCP"| app_2
cassa_7 -->|"3d. Replies · TCP"| app_2
app_2 -->|"4. Replies · HTTPS"| client_0
app_2 -->|"Emits signals · HTTP"| metrics_4
metrics_4 -->|"Alerts · HTTP"| alerting_5COMPONENT STACK (9)
- Web ClientSTATEFULSigns in and calls the API
- Application serverSTATELESSChecks the token, then writes
- Identity provider (IdP)STATEFULSigns and checks tokens
- MetricsSTATEFULSignal: p99 write latency
- AlertingSTATEFULPages on-call on high p99 latency
- etcdSTATEFULLeader + 1 member (2 of 3); PC/EC
- CassandraSTATEFULLeaderless replication; PA/EL
- etcdSTATEFULFollower, 3rd member; PC/EC
- CassandraSTATEFUL3rd replica; hints sent from A
REQUEST & DATA FLOW (11)
- Web Client → Application server (Calls with JWT)[HTTPS]
- Application server → Identity provider (IdP) (Checks token)[HTTPS]
- Application server → etcd (Writes)[TCP]
- Application server → Cassandra (Writes, retries)[TCP]
- etcd → etcd (Copies log)[TCP]
- Cassandra → Cassandra (Copies write)[TCP]
- etcd → Application server (Replies)[TCP]
- Cassandra → Application server (Replies)[TCP]
- Application server → Web Client (Replies)[HTTPS]
- Application server → Metrics (Emits signals)[HTTP]
- Metrics → Alerting (Alerts)[HTTP]