Skip to main content
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
[![CAP and PACELC trade-offs — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_cap-pacelc/opengraph-image)](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_5

COMPONENT STACK (9)

  • Web ClientSTATEFUL
    Signs in and calls the API
  • Application serverSTATELESS
    Checks the token, then writes
  • Identity provider (IdP)STATEFUL
    Signs and checks tokens
  • MetricsSTATEFUL
    Signal: p99 write latency
  • AlertingSTATEFUL
    Pages on-call on high p99 latency
  • etcdSTATEFUL
    Leader + 1 member (2 of 3); PC/EC
  • CassandraSTATEFUL
    Leaderless replication; PA/EL
  • etcdSTATEFUL
    Follower, 3rd member; PC/EC
  • CassandraSTATEFUL
    3rd replica; hints sent from A

REQUEST & DATA FLOW (11)

  1. Web Client → Application server (Calls with JWT)[HTTPS]
  2. Application server → Identity provider (IdP) (Checks token)[HTTPS]
  3. Application server → etcd (Writes)[TCP]
  4. Application server → Cassandra (Writes, retries)[TCP]
  5. etcd → etcd (Copies log)[TCP]
  6. Cassandra → Cassandra (Copies write)[TCP]
  7. etcd → Application server (Replies)[TCP]
  8. Cassandra → Application server (Replies)[TCP]
  9. Application server → Web Client (Replies)[HTTPS]
  10. Application server → Metrics (Emits signals)[HTTP]
  11. Metrics → Alerting (Alerts)[HTTP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →