<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/introducing-group-experiment-safely-test-changes-to-production-code-yc2jesdxv" -->

---
title: Introducing group.experiment(): Safely test changes to...
description: Inngest introduces group.experiment(), a new SDK primitive for comparing production variants of a workflow step using execution data the platform already...
canonical: https://daily.dev/posts/introducing-group-experiment-safely-test-changes-to-production-code-yc2jesdxv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Introducing group.experiment(): Safely test changes to production code | daily.dev
og:description: Inngest introduces group.experiment(), a new SDK primitive for comparing production variants of a workflow step using execution data the platform already...
og:url: https://daily.dev/posts/introducing-group-experiment-safely-test-changes-to-production-code-yc2jesdxv
og:image: https://api.daily.dev/og/posts/YC2jesDxv.png
og:image:alt: Introducing group.experiment(): Safely test changes to production code
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introducing group.experiment(): Safely test changes to production code

**[Inngest Blog](https://daily.dev/sources/inngest)** · 6 min read · 0 upvotes · 0 comments

## Summary

Inngest introduces group.experiment(), a new SDK primitive for comparing production variants of a workflow step using execution data the platform already records—timing, retries, failures, and outputs—rather than data assembled from feature flags, AI eval tools, or DIY logging. Four selection strategies (weighted, bucket, custom, fixed) support the full lifecycle from gradual rollout to locking in a winner, illustrated with a payment-processor migration example from Adyen to Stripe. The feature is available in the Inngest TypeScript SDK version 4.8.0 and later.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.inngest.com/blog/introducing-group-experiment>

## Questions this post answers

### What is Inngest's group.experiment() and what SDK version do I need?

group.experiment() is a primitive in the Inngest TypeScript SDK that lets you compare code variants on live production traffic using the execution data Inngest already records, such as step timing, retries, and outputs. It is available starting in Inngest TypeScript SDK version 4.8.0, so upgrading is required if running an earlier release.

_daily.dev surfaces SDK release notes like this for teams rolling out production experiments._

### What are the different selection strategies available in Inngest's group.experiment() function?

Four strategies cover the experiment lifecycle: experiment.weighted does a deterministic weighted random split seeded by run ID; experiment.bucket hashes a stable value like a user ID so the same value always gets the same variant; experiment.custom runs a function (often backed by a feature flag) to pick a variant, enabling a no-deploy kill switch; and experiment.fixed pins a single winning variant permanently.

_Developers weighing rollout strategies can track patterns like these on daily.dev._

### How is Inngest's group.experiment() different from using feature flags or AI eval platforms to test production changes?

Feature flags like LaunchDarkly split traffic but have no concept of execution data, so they cannot report that a path ran slower or errored more. AI eval platforms like Braintrust score prompt and model output from outside the system against sandbox data, not real production execution. group.experiment() instead uses per-step execution records—timing, retries, status, output—that durable execution already persists to survive crashes and resume.

_Teams comparing experimentation approaches can follow tooling shifts like this on daily.dev._

## Similar posts on daily.dev

- [Automating Complex Workflow in Your Next.js App with Inngest](https://daily.dev/posts/automating-complex-workflow-in-your-next-js-app-with-inngest-z21aksfdw) · Telerik · 2 upvotes · 0 comments
- [How Monk migrated 100\+ workflows from Inngest to Temporal](https://daily.dev/posts/how-monk-migrated-100-workflows-from-inngest-to-temporal-66qhrgjpj) · Temporal · 1 upvotes · 1 comments

---

Tags: [#ab-testing](https://daily.dev/tags/ab-testing), [#inngest](https://daily.dev/tags/inngest), [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/introducing-group-experiment-safely-test-changes-to-production-code-yc2jesdxv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Introducing group.experiment(): Safely test changes to production code","url":"https://daily.dev/posts/introducing-group-experiment-safely-test-changes-to-production-code-yc2jesdxv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/introducing-group-experiment-safely-test-changes-to-production-code-yc2jesdxv"},"datePublished":"2026-09-13T19:57:36.726Z","dateModified":"2026-10-15T02:22:39.179Z","description":"Inngest introduces group.experiment(), a new SDK primitive for comparing production variants of a workflow step using execution data the platform already...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5fcc276dcb388280dd0bcd9e8bd21d67?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5fcc276dcb388280dd0bcd9e8bd21d67?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Inngest Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Inngest Blog","logo":"https://media.daily.dev/image/upload/s--ieZKUa5y--/c_limit,w_256/f_auto,q_auto/v1789329423/logos/inngest?_a=BAMAMicg0","url":"https://daily.dev/sources/inngest"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/introducing-group-experiment-safely-test-changes-to-production-code-yc2jesdxv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ab-testing,inngest,typescript","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Inngest Blog","item":"https://daily.dev/sources/inngest"},{"@type":"ListItem","position":3,"name":"Introducing group.experiment(): Safely test changes to production code"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/introducing-group-experiment-safely-test-changes-to-production-code-yc2jesdxv#faq","mainEntity":[{"@type":"Question","name":"What is Inngest's group.experiment() and what SDK version do I need?","acceptedAnswer":{"@type":"Answer","text":"group.experiment() is a primitive in the Inngest TypeScript SDK that lets you compare code variants on live production traffic using the execution data Inngest already records, such as step timing, retries, and outputs. It is available starting in Inngest TypeScript SDK version 4.8.0, so upgrading is required if running an earlier release. daily.dev surfaces SDK release notes like this for teams rolling out production experiments."}},{"@type":"Question","name":"What are the different selection strategies available in Inngest's group.experiment() function?","acceptedAnswer":{"@type":"Answer","text":"Four strategies cover the experiment lifecycle: experiment.weighted does a deterministic weighted random split seeded by run ID; experiment.bucket hashes a stable value like a user ID so the same value always gets the same variant; experiment.custom runs a function (often backed by a feature flag) to pick a variant, enabling a no-deploy kill switch; and experiment.fixed pins a single winning variant permanently. Developers weighing rollout strategies can track patterns like these on daily.dev."}},{"@type":"Question","name":"How is Inngest's group.experiment() different from using feature flags or AI eval platforms to test production changes?","acceptedAnswer":{"@type":"Answer","text":"Feature flags like LaunchDarkly split traffic but have no concept of execution data, so they cannot report that a path ran slower or errored more. AI eval platforms like Braintrust score prompt and model output from outside the system against sandbox data, not real production execution. group.experiment() instead uses per-step execution records—timing, retries, status, output—that durable execution already persists to survive crashes and resume. Teams comparing experimentation approaches can follow tooling shifts like this on daily.dev."}}]}
```

