ARCHOS 525 BLUEPRINT · /d/dgm_llm-paged-kv-and-prefix-caching
Paged KV memory and prefix caching
7 COMPONENTS · 6 FLOWS · UPDATED 2026-11-23
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_llm-paged-kv-and-prefix-caching) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_llm-paged-kv-and-prefix-caching)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_llm-paged-kv-and-prefix-caching" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Paged KV memory and prefix caching — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
src_0[("Client application")]
n0_1["AI gateway"]
n1_2["Inference server"]
n2_3[("KV cache")]
n3_4[("Storage")]
ctrl_5["OpenTelemetry Collector"]
sink_6[("Client application")]
src_0 -->|"1. Hashes pfx · HTTPS"| n0_1
n0_1 -->|"2. Maps blks · TCP"| n1_2
n1_2 -->|"3. Reuses KV · TCP"| n2_3
n2_3 -->|"4. Pages HBM · TCP"| n3_4
n3_4 -->|"5. Fast TTFT · HTTPS"| sink_6
n1_2 -->|"Hit rate · OTLP"| ctrl_5COMPONENT STACK (7)
- Client applicationSTATEFULShared system prompt
- AI gatewaySTATELESSPrefix-hash router
- Inference serverSTATELESSBlock table mapper
- KV cacheSTATEFULNon-contiguous 16-tok blks
- StorageSTATEFULHBM3 + CPU RAM offload
- OpenTelemetry CollectorSTATELESSPrefix hit % & TTFT
- Client applicationSTATEFUL5x lower TTFT
REQUEST & DATA FLOW (6)
- Client application → AI gateway (Hashes pfx)[HTTPS]
- AI gateway → Inference server (Maps blks)[TCP]
- Inference server → KV cache (Reuses KV)[TCP]
- KV cache → Storage (Pages HBM)[TCP]
- Storage → Client application (Fast TTFT)[HTTPS]
- Inference server → OpenTelemetry Collector (Hit rate)[OTLP]