Build Concurrent Systems
that Don't Break

Cineyma is an actor framework for Rust with typed messages, supervision trees, and built-in clustering.

$cargo add cineyma
Written in Rust
2.2 µs
Actor spawn
1.5M
Messages/sec
17.8 µs
Request latency
< 200 ns
Serialization

Concurrency without the headaches

The hard problems are already solved. You focus on your business logic.

Type Safety

No more runtime type errors

Messages are typed at compile time. The compiler catches mistakes before they reach production.

impl Handler<Increment> for Counter {
type Result = i32; // compiler enforced
}
Memory Safe

Bounded mailboxes

Built-in backpressure. Your actors won't eat all your memory under load.

Automatic flow control
Fault Tolerant

Self-healing actors

OTP-style supervision restarts crashed actors automatically.

Restart { max: 3, within: 60s }
Distributed

Scale beyond a single machine

Gossip protocol and failure detection built-in. Send messages to remote actors like they're local.

node-1
node-2
node-3
+ auto discovery

Simple by design

Define a message, implement a handler, spawn an actor. That's it.

main.rs
use cineyma::{Actor, Handler, Message, ActorSystem, Context};
struct Greet(String);
impl Message for Greet {
type Result = String;
}
struct Greeter;
impl Actor for Greeter {}
impl Handler<Greet> for Greeter {
fn handle(&mut self, msg: Greet, _ctx: &mut Context<Self>) -> String {
format!("Hello, !", msg.0)
}
}
#[tokio::main]
async fn main() {
let system = ActorSystem::new();
let addr = system.spawn(Greeter);
let response = addr.send(Greet("Cineyma".into())).await.unwrap();
println!("{}", response); // "Hello, Cineyma!"
}

From local to distributed

Start simple, scale horizontally when you need it.

01

Local Actors

Spawn actors, send messages, handle responses. All type-safe.

02

Remote Messaging

TCP transport with Protocol Buffers. Request-response over the network.

03

Cluster

Gossip protocol, failure detection, location-transparent messaging.

Ready to build?

One command to add Cineyma to your project. Start building resilient concurrent systems today.

$cargoadd cineyma