Actor Model - Fundamental Concepts

Fundamental Concepts

The Actor model adopts the philosophy that everything is an actor. This is similar to the everything is an object philosophy used by some object-oriented programming languages, but differs in that object-oriented software is typically executed sequentially, while the Actor model is inherently concurrent.

An actor is a computational entity that, in response to a message it receives, can concurrently:

  • send a finite number of messages to other actors;
  • create a finite number of new actors;
  • designate the behavior to be used for the next message it receives.

There is no assumed sequence to the above actions and they could be carried out in parallel.

Decoupling the sender from communications sent was a fundamental advance of the Actor model enabling asynchronous communication and control structures as patterns of passing messages.

Recipients of messages are identified by address, sometimes called "mailing address". Thus an actor can only communicate with actors whose addresses it has. It can obtain those from a message it receives, or if the address is for an actor it has itself created.

The Actor model is characterized by inherent concurrency of computation within and among actors, dynamic creation of actors, inclusion of actor addresses in messages, and interaction only through direct asynchronous message passing with no restriction on message arrival order.

Read more about this topic:  Actor Model

Famous quotes containing the words fundamental and/or concepts:

    Disney World has acquired by now something of the air of a national shrine. American parents who don’t take their children there sense obscurely that they have failed in some fundamental way, like Muslims who never made it to Mecca.
    Simon Hoggart (b. 1946)

    When you have broken the reality into concepts you never can reconstruct it in its wholeness.
    William James (1842–1910)