Chapter 4. State, behavior, and actors
- Receiving messages with switchable behaviors
- Understanding finite state machines
- Modeling finite state machines with switchable behaviors
- Building complex finite state machines with FSMActor
In chapter 3, we looked at creating actors and sending messages to them. You saw how, using ReceiveActor, you can register methods that an actor will execute when it receives a message. In this chapter, you’ll learn how to change which methods are executed in response to the messages received at runtime. This will allow you to build complex actors that are responsive and reactive to their environment, in accordance with the Reactive Manifesto.
This chapter also covers how ...
Get Reactive Applications with Akka.NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.