Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_code-probabilistic-membership-and-counting

Probabilistic Membership & Counting (Bloom, Cuckoo & Count-Min Sketch)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Probabilistic Membership & Counting (Bloom, Cuckoo & Count-Min Sketch) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_code-probabilistic-membership-and-counting/opengraph-image)](https://archos.sageideas.dev/d/dgm_code-probabilistic-membership-and-counting)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_code-probabilistic-membership-and-counting)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_code-probabilistic-membership-and-counting" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Probabilistic Membership & Counting (Bloom, Cuckoo & Count-Min Sketch) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["High-QPS Key Stream"]
  n1_1["Multi-Hash Mapper"]
  n2a_2[("Bloom / Cuckoo Filter")]
  n2b_3[("Count-Min Sketch")]
  n3_4[("Authoritative Store")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Hash k · Hash"| n1_1
  n1_1 -->|"2a. Check bits · Bitset"| n2a_2
  n1_1 -->|"2b. Inc matrix · Sketch"| n2b_3
  n2a_2 -->|"3a. Confirm · Disk/DB"| n3_4
  n2b_3 -->|"3b. Merge · RAM"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • High-QPS Key StreamSTATELESS
    100M+ keys / events
  • Multi-Hash MapperSTATELESS
    Kirsch-Mitzenmacher h1 + i*h2
  • Bloom / Cuckoo FilterSTATEFUL
    0% false negative · ~1% FPR
  • Count-Min SketchSTATEFUL
    Heavy-hitter frequency upper bound
  • Authoritative StoreSTATEFUL
    Only ~1% misses hit disk/DB
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. High-QPS Key Stream → Multi-Hash Mapper (Hash k)[Hash]
  2. Multi-Hash Mapper → Bloom / Cuckoo Filter (Check bits)[Bitset]
  3. Multi-Hash Mapper → Count-Min Sketch (Inc matrix)[Sketch]
  4. Bloom / Cuckoo Filter → Authoritative Store (Confirm)[Disk/DB]
  5. Count-Min Sketch → Authoritative Store (Merge)[RAM]
  6. Authoritative Store → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →