Random weighted

Shipped

Weighted random pick — simple probabilistic distribution by weight.

Example

How Random weighted decides — the pool is evaluated and the winner is assigned. Each strategy selects differently.

type == "lead"winsTriggerNew LeadWebhookDistributeRandom weightedStrategyae-westweight 3ae-eastweight 1centralweight 1MergeGatherAssigned
Show the code
// Random weighted selects from the pool and assigns.
engine.Route(ductor.Route{
Match: `routable.type == "lead"`,
Strategy: "random_weighted",
Pool: "sales-team",
})
 
// Durable, observable, exactly-once.
decision, err := engine.Dispatch(ctx, routable)

How it works

Selects a recipient at random, biased by weight. The cheapest stateless way to spread load when exact fairness isn't required.

Weighted