Tyrex.Pool.Strategy.Random (Tyrex v0.3.0)

Copy Markdown View Source

Random dispatch strategy.

Selects a random runtime for each request. Good for bursty workloads where even distribution isn't critical.

Summary

Functions

Selects a uniformly random runtime index in 0..size-1.

Functions

select(size, opts)

Selects a uniformly random runtime index in 0..size-1.