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.
actix | -telepathy | -telepathy-derive |
---|---|---|
0.10 | 0.1 | 0.1 |
0.11 | 0.2 | 0.1 |
0.12 | 0.3 | 0.2 |
0.12 | 0.4 | 0.3 |
0.13 | 0.5 | 0.3 |
[dependencies]
actix = "0.13"
actix-telepathy = "0.5.3"
use actix_rt;
use actix_telepathy::prelude::*;
use actix::prelude::*;
use tokio;
use std::net::{ToSocketAddrs, SocketAddr};
#[actix_rt::main]
async fn main() {
let bind_addr = "127.0.0.1:1992".parse().unwrap();
let seed_nodes = vec![];
let _cluster = Cluster::new(bind_addr, 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!
@software{Wenig_Actix-Telepathy_2022,
author = {Wenig, Phillip},
month = {6},
title = {{Actix-Telepathy}},
url = {https://github.com/wenig/actix-telepathy},
version = {0.5.3},
year = {2022}
}