Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

RunnerServer

4 exports Since v1.0.0 Source

Layers

Since v1.0.0

The RunnerServer receives messages from other Runners and forwards them to the Sharding layer.

It also responds to Ping requests.

Signature

declare const layer: Layer.Layer<never, never, RpcServer.Protocol | Sharding.Sharding | MessageStorage.MessageStorage>

A Runners layer that is client only.

It will not register with RunnerStorage and receive shard assignments, so this layer can be used to embed a cluster client inside another effect application.

Signature

declare const layerClientOnly: Layer.Layer<Sharding.Sharding | Runners.Runners, never, ShardingConfig | Runners.RpcClientProtocol | MessageStorage.MessageStorage | RunnerStorage.RunnerStorage>

Signature

declare const layerHandlers: any

A RunnerServer layer that includes the Runners & Sharding clients.

Signature

declare const layerWithClients: Layer.Layer<Sharding.Sharding | Runners.Runners, never, RpcServer.Protocol | ShardingConfig | Runners.RpcClientProtocol | MessageStorage.MessageStorage | RunnerStorage.RunnerStorage | RunnerHealth.RunnerHealth>