Repository and learning map
Latest stable Based on Leader release 0.4.0
Understand which modules define contracts, implement storage, integrate frameworks, and demonstrate complete scenarios.

Four layers
Section titled “Four layers”leader-core owns API semantics and local implementations. Backend modules implement those contracts against Redis, SQL, document stores, coordination systems, or Kubernetes. Framework modules integrate Spring Boot, Ktor, and Micrometer. The 17 examples/* projects combine these pieces into runnable operational scenarios.
Choose by responsibility
Section titled “Choose by responsibility”Read core before a backend so contention, cancellation, and lease semantics remain stable when infrastructure changes. Read a framework page only after choosing an elector. Use examples to validate startup, shutdown, metrics, and failure behavior; do not add example projects as dependencies because they are excluded from publication.
Stable and preview
Section titled “Stable and preview”Release 0.4.0 marks core, Redis, Exposed, MongoDB, Hazelcast, ZooKeeper, framework integrations, and Micrometer as stable. DynamoDB, etcd, Consul, and Kubernetes are preview modules. Preview means the operational contract deserves extra integration tests and rollback planning, not that contention semantics change.
Release sources
Section titled “Release sources”Continue learning
Section titled “Continue learning”Release diagrams
Section titled “Release diagrams”These diagrams are loaded directly from README assets published with the 0.4.0 release and pinned to its immutable commit. They describe this manual’s released structure and runtime flows, not later Snapshot changes. Select a preview to open the SVG at the same release commit.
Leader election runtime map
Section titled “Leader election runtime map”Release README: README.md
How runIfLeader Works diagram
Section titled “How runIfLeader Works diagram”Release README: README.md
Multi-leader group: slot-based semaphore diagram
Section titled “Multi-leader group: slot-based semaphore diagram”Release README: README.md
Bluetape4k Leader overview diagram
Section titled “Bluetape4k Leader overview diagram”Release README: README.md



