Actors
Dependency
To use Akka Actors, you must add the following dependency in your project:
- sbt
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.5.32"
- Maven
<dependencies> <dependency> <groupId>com.typesafe.akka</groupId> <artifactId>akka-actor_2.12</artifactId> <version>2.5.32</version> </dependency> </dependencies>
- Gradle
dependencies { implementation "com.typesafe.akka:akka-actor_2.12:2.5.32" }
- Actors
- Dependency
- Introduction
- Creating Actors
- Actor API
- Identifying Actors via Actor Selection
- Messages and immutability
- Send messages
- Receive messages
- Reply to messages
- Receive timeout
- Timers, scheduled messages
- Stopping actors
- Become/Unbecome
- Stash
- Actors and exceptions
- Extending Actors using PartialFunction chaining
- Initialization patterns
- Fault Tolerance
- Dispatchers
- Mailboxes
- Routing
- FSM
- Persistence
- Dependency
- Sample project
- Introduction
- Architecture
- Event sourcing
- Snapshots
- Scaling out
- At-Least-Once Delivery
- Event Adapters
- Storage plugins
- Pre-packaged plugins
- Custom serialization
- Testing
- Configuration
- Multiple persistence plugin configurations
- Give persistence plugin configurations at runtime
- See also
- Persistence - Schema Evolution
- Persistence Query
- Persistence Query for LevelDB
- Persistent FSM
- Persistence - Building a storage backend
- Testing Actor Systems