A Beginner's Guide to Targeting With Feature Flags
This guide explains how to use feature flags effectively for targeting purposes. It introduces the concept of contexts, which can be anything and are used to determine targeting in LaunchDarkly. The user context is typically the most common type of context, containing details about the current end-user. Other types of contexts include organization, tenant, etc., allowing for more complex targeting rules. Multi-contexts enable creating multiple contexts simultaneously, and mobile contexts automatically add environment attributes to a mobile application and mobile device context. Secure mode allows setting all or specific attributes as private. Individual targeting sets a specific variation of a feature flag for a particular context instance by its key, while rule-based targeting targets any contexts that share an attribute or attributes. Segment targeting creates a segment of users and then targets the segment with variations. Targeting insights provide detailed information about contexts, segments, and flag variations received.
Company
LaunchDarkly
Date published
Jan. 4, 2024
Author(s)
Brian Rinaldi
Word count
1499
Language
English
Hacker News points
None found.