#swim #cluster #protocols #group #membership #events #join

clak

Minimal Rust implementation of SWIM group membership protocol

1 unstable release

0.1.0 Dec 19, 2024

#11 in #swim

Download history 92/week @ 2024-12-14 14/week @ 2024-12-21 1/week @ 2025-01-04 1/week @ 2025-01-11 1/week @ 2025-02-01 6/week @ 2025-02-15 42/week @ 2025-02-22 5/week @ 2025-03-01

53 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
~127K SLoC