Actor model
The actor model is a concurrency model in which independent actors encapsulate state and behavior and communicate by exchanging messages, typically asynchronously.
Akka in Action, Second Edition
The actor model structures concurrent computation as isolated actors that encapsulate state and behavior and communicate through asynchronous messages.
- How it is used
- Provides one message-driven abstraction for building concurrent and distributed applications that scale up and out.
- How deep it goes
- Defines actor operations and asynchronous messaging, but defers detailed runtime implementation mechanics.
- Examples
- Uses a chat application with Conversation and Mentions actors to illustrate decoupled message exchange.
- What you can do after
- Apply it via Akka to structure scalable applications around actors, messages, and isolated failures.
Read how Akka in Action, Second Edition explains actor model →
C++ Concurrency in Action, Second Edition
The actor model is a concurrency model in which independent actors communicate by sending messages and do not share state directly.
- How it is used
- Uses message passing to structure an ATM workflow without making its state-machine logic manage synchronization.
- How deep it goes
- Defines actors through a simplified ATM example, tracing message handling and state changes while leaving realistic ATM logic aside.
- Examples
- Demonstrates an ATM state machine that handles card, PIN, and button messages and communicates with bank and interface components.
- What you can do after
- Understand how to organize concurrent components as message-driven actors and reason about accepted messages and state transitions.
Read how C++ Concurrency in Action, Second Edition explains actor model →
Functional Programming in C#, Second Edition
The actor model is a concurrency model in which actors communicate by exchanging messages and can be distributed across processes or machines.
- How it is used
- Coordinates concurrent operations across applications or machines through sequential message handling instead of shared-state access.
- How deep it goes
- Explains actor ownership, routing, serialization, and supervision, while noting implementation complexity without showing a full implementation.
- Examples
- Contrasts request-response HTTP with message-based WebSockets or brokers as options for unidirectional data flow.
- What you can do after
- Evaluate whether distributed coordination justifies actor-model setup costs instead of in-process agents.
Read how Functional Programming in C#, Second Edition explains actor model →
Also covered in
What to know first
- threadA thread is an execution sequence or context within a program or process that represents a unit of work and can run or be scheduled independently of other threads.
- ErlangErlang is a concurrent functional programming language designed for building distributed and fault-tolerant systems.
- queueA queue is an ordered collection or buffer that holds items awaiting retrieval or processing according to a defined ordering policy, commonly first-in, first-out.
- shared mutable stateShared mutable state is data or computational state that multiple program components or execution contexts can access and modify.
Related concepts
- Supervisoruses · A supervisor is a component that monitors subordinate processes, actors, or resources and responds to failures with configured recovery actions.
- actorhas part · An actor is a person, system, process, or computational entity that performs actions or participates in interactions within a system.
- agent-based programmingalternative to · A programming approach in which computational agents communicate by sending messages and perform work in response to them.
- Akkapart of · Akka is an open-source toolkit for building concurrent, distributed, and resilient applications on the JVM using actor-based abstractions.
- message passinguses · Message passing is a communication technique in which independent entities exchange explicit messages to transmit information, coordinate computation, or update state.
Questions about actor model
What is actor model?
The actor model is a concurrency model in which independent actors encapsulate state and behavior and communicate by exchanging messages, typically asynchronously.
Which Manning books explain actor model?
Akka in Action, Second Edition, C++ Concurrency in Action, Second Edition and Functional Programming in C#, Second Edition.
What should I know before learning actor model?
Manning books that teach actor model usually introduce thread, Erlang, queue and shared mutable state first.
What is the difference between actor model and agent-based programming?
The actor model is a concurrency model in which independent actors encapsulate state and behavior and communicate by exchanging messages, typically asynchronously. A programming approach in which computational agents communicate by sending messages and perform work in response to them.
What is actor model part of?
Actor model is part of Akka. Akka is an open-source toolkit for building concurrent, distributed, and resilient applications on the JVM using actor-based abstractions.
What are the parts of actor model?
Actor model includes actor.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


