⛳️ Flag Set
Overview
A flag set is a collection of related flags. This grouping helps organize feature flags based on their intended use, facilitating easier management and deployment.
About flag sets
Flag sets are a powerful feature in GO Feature Flag that allows you to organize your feature flags into separate groups, each with its own configuration, API keys, retrievers
, exporters
, and notifiers
.
This enables better organization and isolation of flags based on teams, environments, or applications.
Key characteristics of flag sets:
- 🔧 Independent configurations: Each flag set can have its own retrievers, exporters, and notifiers
- 🔑 API key-based access: Accessing to a flag set requires an API key, you can have multiple API keys for a flag set, we are using the API key to route the request to the appropriate flag set.
- 🏰 Complete isolation: There is no inheritance between flag sets - each is completely independent.
When to use flag sets ?
Flag sets are particularly useful in the following scenarios:
🏰 Flags Isolation
When different teams need to manage their own flags independently.
- Frontend team manages UI-related feature flags
- Backend team manages API-related feature flags
Flag sets are particularly useful when you have different teams or applications that need to manage their own flags independently. Note that 2 teams can have identical flag name with different purposes without any collision if they are in different flag sets.
🖖 Environment Separation
When you need separate flags for different environments:
- Development environment with experimental flags
- Staging environment with pre-production flags
- Production environment with stable flags