Explore projects
Rustadvancedbackend
Actor System Framework
Actor framework in Rust inspired by Erlang: actors with mailbox, supervision tree, restart strategies, and typed communication.
5 steps
Project steps
- 01
Actor trait
Actor<Message> trait with async handle(msg) and lifecycle hooks (started, stopped).
- 02
Mailbox & address
Each actor has a tokio::mpsc channel; Address<M> for sending messages.
- 03
Actor runtime
Spawn actors in tokio tasks, loop over mailbox.
- 04
Supervisor
Supervisor that monitors children and applies restart strategies: one-for-one, all-for-one.
- 05
Request-response
Ask pattern: sends message and awaits response with oneshot channel.
Recommended resources
Ready to build this?
Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.
5 steps
Tech stack
Rusttokioasync-traitthiserror