🎭
GoAkt
GithubReference
  • 👋Introduction
  • 🏛️Design Principles
  • 🔢Versioning
  • 💡Use Cases
  • 🚀Get Started
  • 📦Binaries and Go versions
  • features
    • Actor System
    • Actor
    • Mailbox
    • Messaging
    • PipeTo
    • Passivation
    • Supervision
    • Behaviors
    • Remoting and APIs
    • TLS
    • Scheduler
    • Stashing
    • Routers
    • Events Stream
    • Coordinated Shutdown
    • Persistence
    • Observability
    • Testkit
    • Cluster
    • Service Discovery
    • Cluster Singleton
    • Cluster Client
  • Cluster PubSub
  • Extensions
  • Dependencies
  • Meta Framework
    • eGo
Powered by GitBook
On this page
  1. features

Remoting and APIs

PreviousBehaviorsNextTLS

Last updated 16 days ago

The interface helps interact with a GoAkt actor system as kind of client. The following features are available:

  • Tell: to send a message to an actor in a fire-and-forget manner.

  • Ask: to send a message to an actor and expect a response within a given timeout.

  • BatchAsk: to send a batch of requests to an actore remotely and expect responses back for each request.

  • BatchTell: to send a batch of fire-and-forget messages to an actor remotely.

  • Remote APIs: See Remoting

Remoting

allows remote actors to communicate. The underlying technology is gRPC. To enable remoting just use the WithRemote option when creating the actor system. See actor system . These are the following remoting features available:

  • RemoteTell: to send a fire-and-forget message to an actor remotely

  • RemoteAsk: to send a request/response type of message to a remote actor

  • RemoteBatchTell: to send a fire-and-forget bulk of messages to a remote actor

  • RemoteBatchAsk: to send a bulk messages to a remote actor with replies

  • RemoteLookup: to lookup for an actor on a remote host

  • RemoteReSpawn: to restarts an actor on a remote machine

  • RemoteStop: to stop an actor on a remote machine

  • RemoteSpawn: to start an actor on a remote machine. The given actor implementation must be registered using the method of the actor system on the remote machine for this call to succeed. The actor is created using the default mailbox and supervisor strategy set when creating the actor system on the remote node.

  • RemoteForward: to pass a message from one actor to the actor by preserving the initial sender of the message.

  • RemoteReinstate: to reinstate a suspended actor on a remote node

These methods can be found as well as on the which is the actor reference when an actor is created.

API
Remoting
options
Register
PID