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
[](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_5COMPONENT STACK (6)
- High-QPS Key StreamSTATELESS100M+ keys / events
- Multi-Hash MapperSTATELESSKirsch-Mitzenmacher h1 + i*h2
- Bloom / Cuckoo FilterSTATEFUL0% false negative · ~1% FPR
- Count-Min SketchSTATEFULHeavy-hitter frequency upper bound
- Authoritative StoreSTATEFULOnly ~1% misses hit disk/DB
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- High-QPS Key Stream → Multi-Hash Mapper (Hash k)[Hash]
- Multi-Hash Mapper → Bloom / Cuckoo Filter (Check bits)[Bitset]
- Multi-Hash Mapper → Count-Min Sketch (Inc matrix)[Sketch]
- Bloom / Cuckoo Filter → Authoritative Store (Confirm)[Disk/DB]
- Count-Min Sketch → Authoritative Store (Merge)[RAM]
- Authoritative Store → Downstream & OTel (Emit /)[OTLP/API]