SunLink is a lightweight ZooKeeper replacement, built as an embeddable in-process library. It speaks the ZooKeeper wire protocol on top of an Apache Ratis Raft core, so every service gets leader election, locks and membership without a separate ZooKeeper cluster.
About the project
SunLink is a lightweight ZooKeeper replacement, built as an embeddable in-process library rather than a standalone server. It implements the ZooKeeper wire protocol on top of an Apache Ratis Raft core, and includes Apache Curator, so embedding services get leader election and membership through the SunLink API.
SunLink does not replicate Cassandra data; each service’s Cassandra nodes replicate natively. Its consumers are leader election (including data-migration steps that run under a leader lock), cluster membership, and peer discovery for SeaWave replication.
Embedded into
Bubbl, Caulight, Redfly, FairFeather and DarkCrow.
Runtime
- JDK 17 and Kotlin 2.2.21. A plain Kotlin library, with no Spring.
- Built with Maven as a library JAR and published to the private Maven repository.
- Dependency versions are the latest stable at build time.
- Maven coordinates
ca.odssbc:sunlink, package rootca.odssbc.sunlink.
Dependencies
- JDK 17 standard library
- Apache Ratis
- Apache Curator
Testing
- Curator’s recipe test suites are run against SunLink.
- Jepsen-style partition tests run across 3 nodes before first production use.