Flag dependencies define relationships between flags to ensure evaluation order. The result of each flag's evaluation is then passed to all subsequent evaluations to decide if dependent flags should evaluate based on the result of the dependency.
Flag dependencies are currently used to implement mutual exclusion and holdout groups.
Mutual exclusion groups¶
Learn more about mutual exclusion group creation, management, and best practices at Amplitude's help center.
A mutual exclusion group ensures that, on evaluation, at most one of the experiments within the group is assigned. In Amplitude Experiment, a mutual exclusion group defines multiple slots, each with a percent of traffic allocated to that slot. The mutual exclusion group is actually just a flag with a variant for each slot. Experiments in the group add a dependency on one or more slots (variants) of the mutual exclusion group flag.
The variant result of a mutual exclusion group's evaluation isn't returned and not assigned as a user property.
Learn more about holdout group creation, management, and best practices at Amplitude's help center.
A holdout group withholds a percentage of traffic from a group of experiments, allowing measurement of the long-term and combined impact of multiple experiments. In Amplitude Experiment, a holdout group is implemented using a flag with two variants:
on, where the
holdout variant is allocated the holdout percentage defined on creation. Experiments in the group depend on the holdout group's variant
The variant result of a holdout group's evaluation isn't returned but is assigned as a user property to enable holdout analysis.
Local evaluation support¶
Flag dependencies (mutual exclusion and holdout groups) is only supported after certain version of SDKs.
Older local evaluation SDK versions
Prior local evaluation SDK versions don't consider mutual exclusion or holdout groups at all. In other words, two experiments in a mutual exclusion group evaluated with an old local evaluation SDK version aren't mutually exclusive.
|SDK||Local Evaluation Flag Dependencies Support|
Still have questions? Ask them in the Community.