releases.shpreview

Experiments: safely test code changes against live production traffic

Experiments let you compare versions of a step on live production traffic, judged on the execution data only Inngest can see. Call group.experiment("your-id", { variants, select }) with the implementations you want to compare and a selection strategy.

Key features:

  • Judged on execution data — Variants are compared on timing, retries, failures, and cost Inngest records
  • Durable selection — One variant runs per run, memoized as a step with weights that can be changed between deploys
  • Strategies for the whole lifecycle — Ramp with experiment.weighted(), bucket users with experiment.bucket(), drive selection from feature flags with experiment.custom(), or lock winners with experiment.fixed()
  • The function stays put — Evolve experiments by changing weights without rewriting the workflow

Available now in the Inngest TypeScript SDK (v4). Import experiment from inngest and call group.experiment() inside any function.

Fetched June 26, 2026