Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_int-zookeeper-like

ZooKeeper-Style Coordination Internals (ZAB, Ephemeral Nodes & Watches)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![ZooKeeper-Style Coordination Internals (ZAB, Ephemeral Nodes & Watches) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-zookeeper-like/opengraph-image)](https://archos.sageideas.dev/d/dgm_int-zookeeper-like)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-zookeeper-like)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-zookeeper-like" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="ZooKeeper-Style Coordination Internals (ZAB, Ephemeral Nodes & Watches) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Distributed Services"]
  n1_1[("Quorum Leader")]
  n2a_2[("Quorum Followers")]
  n2b_3["Session Lease Mgr"]
  n3_4[("In-Memory ZNode Tree")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Propose · TCP"| n1_1
  n1_1 -->|"2a. Ack zxid · TCP"| n2a_2
  n1_1 -.->|"2b. Heartbeat · TCP"| n2b_3
  n2a_2 -->|"3a. Fire watch · RAM"| n3_4
  n2b_3 -->|"3b. Sync · Control"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Distributed ServicesSTATELESS
    Leader election & config lock
  • Quorum LeaderSTATEFUL
    Total-order zxid proposals
  • Quorum FollowersSTATEFUL
    Majority fsync + local reads
  • Session Lease MgrSTATELESS
    Ephemeral znode heartbeat TTL
  • In-Memory ZNode TreeSTATEFUL
    Hierarchical KV + watch fire
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Distributed Services → Quorum Leader (Propose)[TCP]
  2. Quorum Leader → Quorum Followers (Ack zxid)[TCP]
  3. Quorum Leader → Session Lease Mgr (Heartbeat)[TCP]
  4. Quorum Followers → In-Memory ZNode Tree (Fire watch)[RAM]
  5. Session Lease Mgr → In-Memory ZNode Tree (Sync)[Control]
  6. In-Memory ZNode Tree → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →