Akka Best Practices
Don’t share mutable state among actors
Do not close on the sender
Do not close over an actor’s context
Do not use the scheduler with the Runnable trait
Do not declare one actor within another.
Never pass an actor’s this reference into Props
Actors do not stop automatically when no longer referenced, every Actor that is created must also explicitly be destroyed. The only simplification is that stopping a parent Actor will also recursively stop all the child Actors that this parent has created.
[Read More]