Skip to content

Studiedlist/actix-telepathy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crates.io Tests on main License Dependency Status Downloads

Actix Telepathy

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.

Notes

So far, we only support single seed nodes. Connecting to different seed nodes can result in unexpected behavior.

Version Matches

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

Usage

Cargo.toml

[dependencies]
actix = "0.13"
actix-telepathy = "0.5.3"

main.rs

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}
}

About

Cluster extension for actix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%