Skip to main content

Actor Model

· One min read
Hinny Tsang
Data Scientist @ Pollock Asset Management

It is a concurrency model that treats "actors" as the fundamental units of computation.

Concepts

Everything is an actor.

Actor is computational entity that could response to what it receives, and can concurrently do:

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

And the are no assumption of sequencial and parallel.

More rules:

  • actor does not share state with anybody else, but can have its own state.
  • actor can only communicate with other actors by sending and receiving messages.