Flag sets allow you to group Split feature flag definitions that logically belong together. You can configure Split SDK to download a flag set (the subset of your feature flag definitions that you need to evaluate on your client) rather than all of your flags defined in a Split Environment. Flag sets allow you to minimize bandwidth and memory usage, boost app responsiveness, and effectively reduce latency and CPU demands.
To use flag sets you need to:
Manage flag sets. (Before you can see flag sets in Split UI and associate flag definitions with them, you first need to create them via Split API.)
Associate flag definitions with flag sets in Split UI.
On the Definition tab of a feature flag, you will see the Flag Sets button. This button will bring up the Flag Sets modal. The dropdown list shows the flag sets that can be associated with the feature flag definition. Select one or more flag sets, click Apply in the Flag Sets modal, and click Review changes to save the flag set association for the feature flag definition in the selected Environment.
For example, given three flags named
experiment_3, the flag definition scoped to the Production environment for
experiment_1could be associated with the flag set
backendwhile the definitions for
experiment_3could be associated with the flag set
Configure your SDK to filter by flag set
Minimize the size of the payload downloaded from Split cloud by configuring the Split SDK to download only feature flag definitions that belong to specific flag set(s). (Segment definitions are also included in the payload and are unaffected by flag sets.)
All SDKs and the Split Evaluator support flag sets. To find out how to use flag sets in your code, look through the documentation for the language of your project:
Stay within the limits of your tier
Max number of flag sets … Limit type Developer Team Business Enterprise Trial per Organization Billing 15 15 50 unlimited unlimited per Workspace Service 3 3 15 100 100 per feature flag definition * Service 3 3 5 5 5 filtered by a single SDK instance Service 10 10 10 10 10
A Split feature flag can have a definition for each Environment in your Workspace. For more information see Create a feature flag.