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

clak

Minimal Rust implementation of SWIM group membership protocol

1 unstable release

0.1.0 Dec 19, 2024

#1098 in Network programming

Download history 106/week @ 2024-12-17 2/week @ 2025-01-07

108 downloads per month

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
~126K SLoC