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
[](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_5COMPONENT STACK (7)
- ClientsSTATEFULget and put by key
- L4 balancerSTATELESSany node can coordinate
- Node 1STATEFULcoordinator and replica
- Node 2STATEFULcoordinator and replica
- Node 3STATEFULcoordinator and replica
- BackupsSTATEFULsnapshots
- Client applicationSTATEFULReceives quorum responses
REQUEST & DATA FLOW (7)
- Clients → L4 balancer (Get/put)[TCP]
- L4 balancer → Node 2 (Routes key)[client protocol]
- L4 balancer → Client application (Response)[TCP]
- Node 2 → Node 1 (Quorum write)[quorum write]
- Node 2 → Node 3 (Quorum write)[quorum write]
- Node 1 → Node 3 (Anti-entropy)[anti-entropy repair]
- Node 2 → Backups (Snapshot)[snapshot]