This topic explains different segment types and when to use them.
Each time you create a segment, you can choose from different segment types depending on your needs.
You can include contexts in a segment in the following ways:
Rule-based segments and smaller-list based segments can support targeting rules and lists of contexts where the number of individual contexts targeted is 15,000 or fewer.
Rule-based segments work well when you have a relatively small or well-defined group that you want to target. For example, you might create a rule-based segment when you want to target the following groups:
You may notice that it’s also possible to target each of these groups of contexts using targeting rules in a feature flag. However, it can simplify your configuration if you define the targeting rules in a segment, and then set up each flag to target the segment. If you create a segment, then you only have to define the targeting rules once. If your targeting rules ever change, you only have to change them in the segment. All of your feature flags that target the segment will automatically pick up the changes.
For some additional examples of working with rule-based segments, read Using entitlements to manage customer experience.
To learn how to create rule-based segments, read Create rule-based and smaller list-based segments.
Smaller list-based segments work well when you have lists of contexts you want to target that number 15,000 or fewer. Smaller list-based segments also support targeting rules.
To learn how to create smaller list-based segments, read Create rule-based and smaller list-based segments.
Larger list-based segments are only available to customers on select plans. To learn more, read about our pricing. To upgrade your plan, contact Sales.
Larger list-based segments work well when you have lists of contexts you want to target that number more than 15,000. Larger list-based segments can include only one targeted context kind. These segments were previously called “big segments.”
If you are working with server-side SDKs, larger list-based segments require persistent storage integration. You must configure this integration for each environment where you create larger list-based segments. To learn how, read SDK and integration configuration for segments.
List-based segments do not support targeting rules.
Segments synced from external tools are only available to customers on select plans. To learn more, read about our pricing. To upgrade your plan, contact Sales.
Synced segments are segments that sync can their context targeting list with an external tool. Synced segments can support massive numbers of targets. The exact number is only limited by the persistent store you configure. All of the contexts within a synced segment must be of the same context kind.
To learn how to create synced segments, read Segments synced from external tools.
You may be familiar with the concept of a “big segment,” which is a term we previously emphasized in the LaunchDarkly documentation and user interface to describe some segments.
These segments are either:
LaunchDarkly uses different implementations for different types of segments so that all of your segments have good performance.
Most of the time, you don’t need to keep track of whether your segment is one of these two kinds or not. For example, you don’t need to be aware of this when you are working with existing segments, or when you are using segments in your flag targeting rules.
There are two situations where you need to know whether you are using one of these two segment kinds or not: