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
[](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_9COMPONENT STACK (10)
- Web ClientSTATEFULApplication that reads and writes keys
- Identity provider (IdP)STATEFULIssues the JWT; publishes its signing keys
- API gatewaySTATELESSChecks the JWT, then forwards the put
- Policy decision point (PDP)STATELESSAllows or denies this tenant and key range
- Apache CassandraSTATEFULCoordinator: Consistent hashing picks 3 replicas
- Apache CassandraSTATEFULReplica: LSM tree; anti-entropy repair
- Apache CassandraSTATEFULReplica; Fallback: hinted handoff
- Secrets managerSTATEFULHolds node certificates and keys
- Time-series database (TSDB)STATEFULLatency, errors, hint backlog
- AlertingSTATEFULPages on-call when hints or errors pile up
REQUEST & DATA FLOW (14)
- Web Client → API gateway (Calls with JWT)[HTTPS]
- API gateway → Policy decision point (PDP) (Authorize)[mTLS]
- Policy decision point (PDP) → API gateway (Decision)[mTLS]
- API gateway → Apache Cassandra (Put, QUORUM)[mTLS]
- Apache Cassandra → Apache Cassandra (Replicates)[mTLS]
- Apache Cassandra → Apache Cassandra (Replicates)[mTLS]
- Apache Cassandra → Apache Cassandra (Ack)[mTLS]
- Apache Cassandra → Apache Cassandra (Ack)[mTLS]
- Apache Cassandra → API gateway (Done)[mTLS]
- API gateway → Web Client (Result)[HTTPS]
- Identity provider (IdP) → API gateway (Publishes keys (JWKS))[HTTPS]
- Secrets manager → Apache Cassandra (Supplies certificates)[mTLS]
- Apache Cassandra → Time-series database (TSDB) (Exports (OTLP))[OTLP]
- Time-series database (TSDB) → Alerting (Queried by alerting)[HTTP]