January 2019
Intermediate to advanced
520 pages
14h 32m
English
The actix crate provides a well-organized actors model that's simple to use. There are main concepts you should remember. At first, the actix crate has the System type, which is the main type to maintain actors system. You have to create the System instance before you create and spawn any actor. Actually, System is an Actor that controls the whole process and can be used to stop an application.
Actor is the most-used trait of the framework. Every type that implements the Actor trait can be spawned. We'll implement this trait for our types later in this chapter. Also, the actix crate contains the Arbiter type, which is an event loop controller that have to be one per thread. There's SyncArbiter to run CPU-boud ...
Read now
Unlock full access