Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_code-skip-lists-and-memtables

Skip Lists & LSM MemTables (Probabilistic O(log N) Lock-Free Ordering)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Skip Lists & LSM MemTables (Probabilistic O(log N) Lock-Free Ordering) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_code-skip-lists-and-memtables/opengraph-image)](https://archos.sageideas.dev/d/dgm_code-skip-lists-and-memtables)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_code-skip-lists-and-memtables)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_code-skip-lists-and-memtables" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Skip Lists & LSM MemTables (Probabilistic O(log N) Lock-Free Ordering) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Write / Range Caller"]
  n1_1["Tower Height RNG"]
  n2a_2[("Multi-Level Forward List")]
  n2b_3["CAS Atomic Splice"]
  n3_4[("Immutable SST Flush")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Roll · RNG"| n1_1
  n1_1 -->|"2a. Traverse · SkipList"| n2a_2
  n1_1 -->|"2b. CAS ptr · Atomic"| n2b_3
  n2a_2 -->|"3a. Seq scan · Flush"| n3_4
  n2b_3 -->|"3b. Merge · RAM"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Write / Range CallerSTATELESS
    Insert & Prefix Scan
  • Tower Height RNGSTATELESS
    Geometric p=0.25 level roll
  • Multi-Level Forward ListSTATEFUL
    Express lanes O seek
  • CAS Atomic SpliceSTATELESS
    Lock-free concurrent insert
  • Immutable SST FlushSTATEFUL
    Sequential L0 iterator dump
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Write / Range Caller → Tower Height RNG (Roll)[RNG]
  2. Tower Height RNG → Multi-Level Forward List (Traverse)[SkipList]
  3. Tower Height RNG → CAS Atomic Splice (CAS ptr)[Atomic]
  4. Multi-Level Forward List → Immutable SST Flush (Seq scan)[Flush]
  5. CAS Atomic Splice → Immutable SST Flush (Merge)[RAM]
  6. Immutable SST Flush → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →