Getting Started with Actors [Akka in a Nutshell #2]

Knoldus Blogs

Hierarchical Structure

Actors are objects which encapsulate state and behavior, they communicate by exchanging messages. We can consider an actor as a person.

Like a software development team, actors form hierarchies. In a team there is a project manager who takes requirements from client and distributes it over to different team leads. Then those team leads further distribute the tasks to other team members.Team members after finsihing their tasks, report to their team lead about the status.

Similarly, an actor might wants to split up a task into smaller tasks. For that actor creates child actors and if by any means child actor is unable to execute successfully then it will send a corresponding failure message to it’s parent where it is created from.

Actor System

An actor system manages the resources it is configured to use in order to run the actors which it contains.

The actor system as…

View original post 735 more words

Leave a comment