Shark tank

Shipped
alias broadcast_claim

Broadcast to N candidates — first to claim wins.

Example

How Shark tank decides — the pool is evaluated and the winner is assigned. Each strategy selects differently.

type == "lead"winsTriggerNew LeadWebhookBroadcastShark tankStrategyae-westae-eastclaimed ✓centralClaimGatherAssigned
Show the code
// Shark tank selects from the pool and assigns.
engine.Route(ductor.Route{
Match: `routable.type == "lead"`,
Strategy: "shark_tank",
Pool: "sales-team",
})
 
// Durable, observable, exactly-once.
decision, err := engine.Dispatch(ctx, routable)

How it works

Broadcasts an opportunity to multiple candidates simultaneously and assigns to the first that claims it. The shipped claim primitive behind speed-to-lead and ping/post-style competition, driven by the ping/post service.

StatefulExplainable