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

Design a key-value store

7 COMPONENTS · 7 FLOWS · UPDATED 2026-11-19
GITHUB README / PR PREVIEW CARD
[![Design a key-value store — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_kv-store/opengraph-image)](https://archos.sageideas.dev/d/dgm_kv-store)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_kv-store)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_kv-store" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Design a key-value store — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Clients")]
  lb_1["L4 balancer"]
  n1_2[("Node 1")]
  n2_3[("Node 2")]
  n3_4[("Node 3")]
  bak_5[("Backups")]
  sink_6[("Client application")]
  client_0 -->|"1. Get/put · TCP"| lb_1
  lb_1 -->|"2a. Routes key · client protocol"| n2_3
  lb_1 -->|"2b. Response · TCP"| sink_6
  n2_3 -->|"3a. Quorum write · quorum write"| n1_2
  n2_3 -->|"3b. Quorum write · quorum write"| n3_4
  n1_2 -->|"4. Anti-entropy · anti-entropy repair"| n3_4
  n2_3 -->|"3c. Snapshot · snapshot"| bak_5

COMPONENT STACK (7)

  • ClientsSTATEFUL
    get and put by key
  • L4 balancerSTATELESS
    any node can coordinate
  • Node 1STATEFUL
    coordinator and replica
  • Node 2STATEFUL
    coordinator and replica
  • Node 3STATEFUL
    coordinator and replica
  • BackupsSTATEFUL
    snapshots
  • Client applicationSTATEFUL
    Receives quorum responses

REQUEST & DATA FLOW (7)

  1. Clients → L4 balancer (Get/put)[TCP]
  2. L4 balancer → Node 2 (Routes key)[client protocol]
  3. L4 balancer → Client application (Response)[TCP]
  4. Node 2 → Node 1 (Quorum write)[quorum write]
  5. Node 2 → Node 3 (Quorum write)[quorum write]
  6. Node 1 → Node 3 (Anti-entropy)[anti-entropy repair]
  7. Node 2 → Backups (Snapshot)[snapshot]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →