posted 9 years ago
Very recently, I read about distributed actors or remote actors (whatever you call it). I have been comfortable so far using state in my Actor and mutate it inside my receive method. Happy days! Now I want to distribute my actor across several JVM's and I already see that my state in my actor could be an issue.
I did read about the become and unbecome and I was just wondering how Akka handles this internally? Any ideas? Here is a small example:
Now, when I call the TestActor in the following sequence:
Initializes the actor, calls the default receive method which calls the starter method and in the starter method case Add matches and the starter now becomes the default receive method for the next subsequent messages! My question is, where is the mutated List maintained?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!