The Akka ActorSystem has the following roles and responsibilities:
- It acts as runtime for all Actors
- It creates Actors
- It can stop Actors
- It supervises related Actors
- It creates threads and assigns them to the Actor's dispatcher to process the messages
- It manages the lifecycle of Actors
- It can shut down the whole Akka Actor environment
- It creates the following three base Actors to help other Actors:
- Root Actor (/)
- User Guardian Actor(/user)
- System Guardian Actor(/system)
- It supervises or monitors those top-level Actors
- When we run ActorSystem.terminate(), it is responsible for terminating all the available Actors automatically
When we create an Actor using ActorSystem.actorOf(), as shown in the ...