In Unit 1, we learned some of the fundamentals of Akka.NET and the actor model.
In Unit 2 we will learn some of the more sophisticated concepts behind Akka.NET, such as pattern matching, basic Akka.NET configuration, scheduled messages, and more!
In Unit 2 you're going to build your own version of Resource Monitor using Windows Forms, some of the data visualization tools built into .NET, and Performance Counters.
In fact, here's what the final output from lesson 5 looks like:
You're going to build this whole thing using actors, and you'll be surprised at how small your code footprint is when we're finished.
In Unit 2 you will learn:
- How to use HOCON configuration to configure your actors via App.config and Web.config;
- How to configure your actor's Dispatcher to run on the Windows Forms UI thread, so actors can make operations directly on UI elements without needing to change contexts;
- How to handle more sophisticated types of pattern matching using
ReceiveActor
; - How to use the
Scheduler
to send recurring messages to actors; - How to use the Publish-subscribe (pub-sub) pattern between actors;
- How and why to switch actor's behavior at run-time; and
- How to
Stash
messages for deferred processing.
- Lesson 1:
Config
and Deploying Actors via App.Config - Lesson 2: Using
ReceiveActor
for Better Message Handling - Lesson 3: Using the
Scheduler
to Send Recurring Messages - Lesson 4: Switching Actor Behavior at Run-time with
Become
andUnbecome
- Lesson 5: Using a
Stash
to Defer Processing of Messages
To get started, go to the /DoThis/ folder and open SystemCharting.sln
.
And then go to Lesson 1.