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_1
,experiment_2
andexperiment_3
, the flag definition scoped to the Production environment forexperiment_1
can be associated with the flag setbackend
, while the definitions scoped to the Production environment forexperiment_2
andexperiment_3
can be associated with the flag setfrontend
.
-
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). The SDK will only fetch the segment data needed by the list of feature flags it fetches. When flag sets reduce the number of flags fetched, the appropriate subset of segment data is automatically reduced as well.
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 Account Billing 15 15 50 unlimited unlimited per Project 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 Project. For more information see Create a feature flag.
Comments
0 comments
Please sign in to leave a comment.