Get the latest tech news

Ractor – a Rust Actor Framework


Ractor provides a fully-supervised, tokio-friendly actor framework for Rust frameworks. It is modelled closely off of Erlang’s gen_server along with extensions such as factories and distributed clusters.

Since we’re trying to model as best we can around Erlang’s practices, message sends in Ractor can occur in 2 ways, first-and-forget and waiting on a reply. This call is a message which provides the response channel (the “port”) as an argument, so the receiver doesn’t need to know who asked. We’ll look at how we construct this in a bit We added a hander match arm for this message type, which sends the reply back when requested.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of rust actor framework

rust actor framework

Photo of ractor

ractor