A behavior function defines how an actor handles messages and what behavior follows. Because actors can be created or re-created from behavior functions and communicate through actor references, functional processing can be separated from fault recovery. section 5.1.1
This separation supports fault-tolerant design by keeping these concerns distinct:
- Message-processing behavior remains independent of recovery handling. section 5.1.1
- Actors can be suspended and restarted during fault recovery. section 5.1.1
- Actor references avoid the direct object references that make components hard to isolate. section 5.1.1
Figure 5.1 Processing logs from the FileWatcher, to the LogProcessor, to the Writer, and to the database
Follow a log-processing flow from FileWatcher through LogProcessor and Writer to see independently communicating actor roles. section 5.1.1
