Skip to content

nsengupta/ractor-tutorial

Repository files navigation

ractor-tutorial

In the past, I have had the opportunity to learn and apply Actor-based design (using #akka ) in about 3 production software. I loved the way I could model the behaviour using Actors (and #fsm) using #scala and #java.

As a Rust enthusiast, I was searching for Actor-based libraries and chanced upon ractor (github) , which mirrored the behavior of Erlang's.

I have captured my understanding during and after the exploration of ractor in the form of tutorials; in 3 parts, just so that reading each doesn't become too heavy.


Important: this repository replaces the 3 individual repositories that I had created earlier. Each of those 3 repositories contained one tutorial. They were in a series named as rust-ractor-tutorial-(1, 2, 3). This arrangement made maintenance of the tutorials easier but made reading quite cumbersome, what with all the jumping around repositories. Based upon suggestions received in LinkedIn's Rust Programming Language forum, I have combined those earlier 3 tutorials into 1, which is this repository. It walks one through the world of Actors as implemented by 'ractor' framework.

I have retired the 3 older repositories.


Alt text

The tutorials are divided into three parts for easier reading and these are in the following directories:

  • ractor-tutorial-chapter-1 (README).
  • ractor-tutorial-chapter-2 (README).
  • ractor-tutorial-chapter-3 (README)

Each of these tutorial-chapters has its cargo.toml and src directories. The accompanying blog is inside README, as well as in the directory accompanying_contents.

In order to run the code, one needs to move to the corresponding directory and issue the command: cargo run.

About

A series of 3 tutorials that walks one through the world of Actors as implemented by 'ractor' framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published