Inspired by actix-remote and Akka Cluster, Actix Telepathy is an extension to the Rust actor framework Actix. It empowers Rust users to build distributed application within the actor framework.
So far, we only support single seed nodes. Connecting to different seed nodes can result in unexpected behavior.
toml
[dependencies]
actix = "0.10"
actix-telepathy = "0.4.0"
```rust use actixrt; use actixtelepathy::prelude::; use actix::prelude::; use tokio; use std::net::{ToSocketAddrs, SocketAddr};
async fn main() { let bindaddr = "127.0.0.1:1992".parse().unwrap(); let seednodes = vec![]; let cluster = Cluster::new(bindaddr, seed_nodes);
tokio::signal::ctrl_c().await.unwrap();
println!("Ctrl-C received, shutting down");
System::current().stop();
} ```
Please consider citing this work when you are using it!