Scalable architectures and asynchronous programming have led to a rise of actors and actor-based designs (https://mattferderer.com/what-is-the-actor-model-and-when-should-you-use-it), facilitated by frameworks such as Akka (https://akka.io/). Regardless of Rust's powerful concurrency features, actors in Rust are still tricky to get right and they lack the documentation that many other libraries have. In this recipe, we are going to explore the basics of actix, Rust's actor framework, which was created after the popular Akka.
Handling asynchronous messages with actors
How to do it...
Implement an actor-based sensor data reader in just a few steps:
- Create a new binary application using cargo new actors and open...