Akka Actor – Actor
It is an actual Actor instance, which encapsulates state and behavior to perform its computation. It does NOT receive messages directly from the outside world (from Actors or non-Actors). It receives messages from ActorRef to dispatcher to itself only.
Both request and response messages between the sender Actor and the recipient Actor cannot be modified; they are immutable objects.
The MessageDispatcher component of an Actor manages the mailbox and routes the messages to the destination (receiver) Actor's mailbox. There is no direct communication between Actors.
When we execute the ActorSystem.actorOf() function, ActorSystem not only creates ActorRef, but also creates the actual Actor instance, MessageDispatcher, and Mailbox(MessageQueue). ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access