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 cluster

  • Spawn - to spawn an actor in the cluster

  • SpawnWithBalancer - to spawn an actor in the cluster with a given balancer strategy

  • Stop - to kill/stop an actor in the cluster

  • Ask - to send a message to a given actor in the cluster and expect a response

  • Tell - to send a fire-forget message to a given actor in the cluster

  • Whereis - to locate and get the address of a given actor

  • ReSpawn - to restart a given actor

Last updated