Understanding segments
While users, within the context of LaunchDarkly, require implementation in the code base, the concept of segments exists within the tool itself. A segment can be considered a group of users that all fall within a certain category. This grouping is defined within LaunchDarkly and relies on the targeting rules we have already seen in several chapters, especially Chapter 4, Percentage and Ring Rollouts. We will see them in the next couple of sections as well.
Segments can be used to great effect when there are frequently used targeting rules or features that are regularly rolled out to certain groups of customers. Because the segments are created with the same attributes that are used within the targeting rules, some custom attributes might be used across several or all applications within your system to ensure segments can be used effectively. For example, there might a classification for a customer, such as new customer, regular customer, and VIP. By providing...