website/src/content/docs/actors/communicating-between-actors.mdx
Actors can communicate with each other using the server-side actor client, enabling complex workflows and data sharing between different actor instances.
<Note> We recommend reading the [clients documentation](/docs/clients) first. This guide focuses specifically on communication between actors. </Note>The server-side actor client allows actors to call other actors within the same registry. Access it via c.client() in your actor context:
Use a coordinator actor to manage complex workflows:
<CodeSnippet file="examples/docs/actors-communicating-between-actors/actor-orchestration.ts" />Collect data from multiple actors:
<CodeSnippet file="examples/docs/actors-communicating-between-actors/data-aggregation.ts" />Use connections to listen for events from other actors:
<CodeSnippet file="examples/docs/actors-communicating-between-actors/event-driven.ts" />Process multiple items in parallel:
<CodeSnippet file="examples/docs/actors-communicating-between-actors/batch-operations.ts" />ActorHandle - Handle for calling other actorsClient - Client type for actor communicationActorAccessor - Accessor for getting actor handles