Go C#

Module 4: Creating actor hierarchy and error handling.

Concepts you’ll learn.

In this module, we will learn how to create a hierarchy of actors and how to restore actors after a failure. To demonstrate the features of the Proto.Actor platform, we will create our streaming system for watching movies based on the actor hierarchy. You’ll see how Proto.Actor takes on all the low-level work of supporting the actor hierarchy and recovering actors after a crash.

Также вы узнаете что такое супервизор и какие стратегии восстановления актора предлагает платформа Proto.Actor. В конце данной главы, вы узнаете как создать свои собственные стратегии восстановления акторов, зависящие от типа исключения.

Table of Contents

  1. Supervisor and actor hierarchy.
  2. Overview of the application that demonstrates the supervisor’s capabilities and the actors hierarchy.
  3. Actor’s addres and PID.
  4. Creating UserCoordinatorActor.
  5. Creating MoviePlayCounterActor.
  6. How parent actors are watching over their children actors.
  7. Strategies to control the state of children’s actors.