{"by":"snowboarder63","descendants":74,"id":34813489,"kids":[34815796,34814472,34816513,34820840,34816474,34817007,34814140,34818796,34818266,34815721,34831437,34814010,34817390,34818051,34825136,34819103,34816231,34820360,34814374,34814686],"score":168,"text":"SOME HIGHLIGHTS.<p>* We have a full supervision tree so actors can monitor other actors for exits and unhandled panic!s (at least the ones that can be caught)<p>* The actor lifecycle is handled for you in a simple single-threaded, message handler primitive<p>* You have a mutable state with each message handling call, so you have an easy way to create stateful actors and update that state as messages are processed<p>* Actors talk to other actors by message passing, but there are remote-procedure-calls (RPCs) so actors can &quot;ask a question&quot; to another actor and wait on the reply.<p>* A lot of the concurrency primitives are handled by the framework, such as cancellation&#x2F;termination of actors (both graceful and forceful)<p>* A Factory primitive in order to formulate distributed processing pools with multiple job routing options<p>* Early but stable support for a distributed epmd-like cluster environment, where you can talk to actors over a network link. It&#x27;s an additional crate (ractor_cluster) that builds on ractor to facilitate the inter-connection between nodes and support remote casts and calls to actors on a remote node.<p>We&#x27;re openly seeking feedback, so please feel free to utilize the library and let us know if there&#x27;s anything you find missing or doesn&#x27;t work as expected!","time":1676509366,"title":"Show HN: Ractor – a Rust-based actor framework with clusters and supervisors","type":"story","url":"https://github.com/slawlor/ractor"}