Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_kv-store-v3

Distributed key-value store (leaderless quorum)

11 COMPONENTS · 14 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[![Distributed key-value store (leaderless quorum) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_kv-store-v3/opengraph-image)](https://archos.sageideas.dev/d/dgm_kv-store-v3)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_kv-store-v3)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_kv-store-v3" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Distributed key-value store (leaderless quorum) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Web Client")]
  idp_1[("Identity provider (IdP)")]
  gw_2["API gateway"]
  pdp_3["Policy decision point (PDP)"]
  coord_4[("Apache Cassandra")]
  repb_5[("Apache Cassandra")]
  repc_6[("Apache Cassandra")]
  secrets_7[("Secrets manager")]
  tsdb_8[("Time-series database (TSDB)")]
  alerting_9[("Alerting")]
  capacity_10["Capacity Estimate"]
  client_0 -->|"1. Calls with JWT · HTTPS"| gw_2
  gw_2 -->|"2. Authorize · mTLS"| pdp_3
  pdp_3 -->|"3. Decision · mTLS"| gw_2
  gw_2 -->|"4. Put, QUORUM · mTLS"| coord_4
  coord_4 -->|"5a. Replicates · mTLS"| repb_5
  coord_4 -->|"5b. Replicates · mTLS"| repc_6
  repb_5 -->|"6a. Ack · mTLS"| coord_4
  repc_6 -->|"6b. Ack · mTLS"| coord_4
  coord_4 -->|"7. Done · mTLS"| gw_2
  gw_2 -->|"8. Result · HTTPS"| client_0
  idp_1 -->|"Publishes keys (JWKS) · HTTPS"| gw_2
  secrets_7 -->|"Supplies certificates · mTLS"| coord_4
  coord_4 -->|"Exports (OTLP) · OTLP"| tsdb_8
  tsdb_8 -->|"Queried by alerting · HTTP"| alerting_9

COMPONENT STACK (10)

  • Web ClientSTATEFUL
    Application that reads and writes keys
  • Identity provider (IdP)STATEFUL
    Issues the JWT; publishes its signing keys
  • API gatewaySTATELESS
    Checks the JWT, then forwards the put
  • Policy decision point (PDP)STATELESS
    Allows or denies this tenant and key range
  • Apache CassandraSTATEFUL
    Coordinator: Consistent hashing picks 3 replicas
  • Apache CassandraSTATEFUL
    Replica: LSM tree; anti-entropy repair
  • Apache CassandraSTATEFUL
    Replica; Fallback: hinted handoff
  • Secrets managerSTATEFUL
    Holds node certificates and keys
  • Time-series database (TSDB)STATEFUL
    Latency, errors, hint backlog
  • AlertingSTATEFUL
    Pages on-call when hints or errors pile up

REQUEST & DATA FLOW (14)

  1. Web Client → API gateway (Calls with JWT)[HTTPS]
  2. API gateway → Policy decision point (PDP) (Authorize)[mTLS]
  3. Policy decision point (PDP) → API gateway (Decision)[mTLS]
  4. API gateway → Apache Cassandra (Put, QUORUM)[mTLS]
  5. Apache Cassandra → Apache Cassandra (Replicates)[mTLS]
  6. Apache Cassandra → Apache Cassandra (Replicates)[mTLS]
  7. Apache Cassandra → Apache Cassandra (Ack)[mTLS]
  8. Apache Cassandra → Apache Cassandra (Ack)[mTLS]
  9. Apache Cassandra → API gateway (Done)[mTLS]
  10. API gateway → Web Client (Result)[HTTPS]
  11. Identity provider (IdP) → API gateway (Publishes keys (JWKS))[HTTPS]
  12. Secrets manager → Apache Cassandra (Supplies certificates)[mTLS]
  13. Apache Cassandra → Time-series database (TSDB) (Exports (OTLP))[OTLP]
  14. Time-series database (TSDB) → Alerting (Queried by alerting)[HTTP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →