GitHub

socket_runner

API reference for socket_runner.

A cluster runner whose RPCs travel over a SocketServer (Effect's SocketRunner).

layer serves the runner protocol on the SocketServer in the context, logs where it listens, and provides Sharding and Runners; calls to other runners go through the RpcClientProtocol in the context (cluster_socket.layer_client_protocol dials them over TCP). layer_client_only joins the cluster as a sender only.

Values

AttributeTypeDescription
layerLayer[Sharding | Runners, Never, RpcClientProtocol | ShardingConfig | RpcSerialization | SocketServer | MessageStorage | RunnerStorage | RunnerHealth]

A runner serving the runner protocol on the SocketServer, with its Sharding and Runners (Effect's SocketRunner.layer).

layer_client_onlyLayer[Sharding | Runners, Never, RpcClientProtocol | ShardingConfig | MessageStorage | RunnerStorage]

Sharding and Runners of a process that only sends to the cluster (Effect's SocketRunner.layerClientOnly).