interface WorkerShardingStrategyOptions

external
interface WorkerShardingStrategyOptions

Options for a WorkerShardingStrategy

external
shardsPerWorker : number | 'all'

Dictates how many shards should be spawned per worker thread.

optionalexternal
workerPath? : string

Path to the worker file to use. The worker requires quite a bit of setup, it is recommended you leverage the WorkerBootstrapper class.

optionalexternal
unknownPayloadHandler(
payload: any
) : unknown

Handles a payload not recognized by the handler.