#group #protocols #membership #swim #events #subscription #join

clak

Minimal Rust implementation of SWIM group membership protocol

1 unstable release

new 0.1.0 Dec 19, 2024

#5 in #swim

MIT license

28KB
739 lines

Clak

Minimal Rust implementation of SWIM group membership protocol.

Examples

Create cluster:

HOST=127.0.0.1 PORT=4242 RUST_LOG=info cargo run --example basic  

Join cluster:

HOST=127.0.0.1 PORT=4243 JOIN_HOST=127.0.0.1 JOIN_PORT=4242 RUST_LOG=info cargo run --example basic

Subscribe to events:

HOST=127.0.0.1 PORT=4244 JOIN_HOST=127.0.0.1 JOIN_PORT=4242 cargo run --example subscription

Dependencies

~3–12MB
~128K SLoC