Overview
In clustered mode, multiple nodes form a cluster. Actors are location-transparent: you send to a PID, and the framework routes to the correct node. Discovery backends (Consul, etcd, Kubernetes, NATS, mDNS, static) tell the cluster how to find peers.When to use
- High availability and horizontal scaling
- Actor distribution across machines
- Cluster singletons and relocation
Key components
- Discovery β Pluggable provider for peer discovery
- Cluster registry β Distributed map (Olric) for actor/grain placement
- Remoting β TCP-based message transport between nodes
Configuration
Configure the actor system withWithCluster(clusterConfig) and a discovery provider. Configure remoting with
WithRemote(config). The cluster joins membership, and actors can be looked up via ActorOf across nodes. See Service Discovery for provider options.