Client
The GoAkt client facilitates interaction with a specified GoAkt cluster, contingent upon the activation of cluster mode. The client operates without knowledge of the specific node within the cluster that will process the request. This feature is particularly beneficial when interfacing with a GoAkt cluster from an external system. GoAkt client is equipped with a mini load-balancer that helps route requests to the appropriate node.
Balancer strategies
Round Robin - a given node is chosen using the round-robin strategy
Random - a given node is chosen randomly
Least Load - the node with the least number of actors is chosen
Functions
Kinds
- to list all the actor kinds in the clusterSpawn
- to spawn an actor in the clusterSpawnWithBalancer
- to spawn an actor in the cluster with a given balancer strategyStop
- to kill/stop an actor in the clusterAsk
- to send a message to a given actor in the cluster and expect a responseTell
- to send a fire-forget message to a given actor in the clusterWhereis
- to locate and get the address of a given actorReSpawn
- to restart a given actor
Last updated