This document describes how to get started with Flipt.
This document will walk you through creating your first flag, segment, set of rules, and finally using the evaluation console to mimic an evaluation request from your applications.
For more information on any of the concepts described, please see the Concepts documentation.
Run Flipt in your cloud without having to worry about managing everything yourself.
Before getting started, make sure the Flipt server is up and running on your host on your chosen ports. See Installation for more.
In this example, we’ll use the default location of http://localhost:8080.
First, we’ll create a flag and variants that we will use to evaluate against.
A flag is the basic entity in Flipt. Flags can represent features in your applications that you want to enable/disable for your users.
To create a flag:
New Flag
.Enabled
so the flag will be enabled once created.Create
.Variants allow you to return different values for your flags based on rules that you define.
To create a variant:
New Variant
.Create
.Click Flags
in the navigation menu and you should now see your newly created
flag in the list.
Next, we’ll create a segment with a constraint that will be used to determine the reach of your flag.
Segments are used to split your user base into subsets.
To create a segment:
Segments
.New Segment
.Create
.Constraints are used to target a specific segment.
Constraints aren’t required to match a segment. A segment with no constraints will match every request by default.
To create a constraint:
New Constraint
.Create
.Click Segments
in the navigation menu and you should now see your newly
created segment in the list.
Finally, we’ll create a rule defining a distribution for your flag and variants. Rules allow you to define which variant gets returned when you evaluate a specific flag that falls into a given segment.
To create a rule:
Rules
tab.New Rule
.Segment
choose or search for the segment you created earlier.Type
choose Multi-Variate
.50%
each.Create
.A distribution is a way of assigning a percentage for which entities evaluated get a specific variant. The higher the percentage assigned, the more likely it is that any entity will get that specific variant.
You could just as easily have picked Single Variant
instead of
Multi-Variate
when setting up your rule. This would effectively mean you
have a single distribution, a variant with 100%
chance of being returned.
After creating the above flag, segment and targeting rule, you’re now ready to test how this would work in your application.
The Flipt UI contains an Evaluation Console to allow you to experiment with different requests to see how they would be evaluated.
The main ideas behind how evaluation works are described in more detail in the Concepts documentation.
To test evaluation:
Console
page from the main navigation.Entity ID
field is pre-populated with a random UUID. This represents
the ID that you would use to uniquely identify entities (ex: users) that you
want to test against your flags.Evaluate
.Request Context
and Entity ID
fields.That’s it! You’re now ready to integrate Flipt into your applications and start defining your flags and segments that will enable you to seamlessly rollout new features to your users while reducing risk.
This document describes how to get started with Flipt.
This document will walk you through creating your first flag, segment, set of rules, and finally using the evaluation console to mimic an evaluation request from your applications.
For more information on any of the concepts described, please see the Concepts documentation.
Run Flipt in your cloud without having to worry about managing everything yourself.
Before getting started, make sure the Flipt server is up and running on your host on your chosen ports. See Installation for more.
In this example, we’ll use the default location of http://localhost:8080.
First, we’ll create a flag and variants that we will use to evaluate against.
A flag is the basic entity in Flipt. Flags can represent features in your applications that you want to enable/disable for your users.
To create a flag:
New Flag
.Enabled
so the flag will be enabled once created.Create
.Variants allow you to return different values for your flags based on rules that you define.
To create a variant:
New Variant
.Create
.Click Flags
in the navigation menu and you should now see your newly created
flag in the list.
Next, we’ll create a segment with a constraint that will be used to determine the reach of your flag.
Segments are used to split your user base into subsets.
To create a segment:
Segments
.New Segment
.Create
.Constraints are used to target a specific segment.
Constraints aren’t required to match a segment. A segment with no constraints will match every request by default.
To create a constraint:
New Constraint
.Create
.Click Segments
in the navigation menu and you should now see your newly
created segment in the list.
Finally, we’ll create a rule defining a distribution for your flag and variants. Rules allow you to define which variant gets returned when you evaluate a specific flag that falls into a given segment.
To create a rule:
Rules
tab.New Rule
.Segment
choose or search for the segment you created earlier.Type
choose Multi-Variate
.50%
each.Create
.A distribution is a way of assigning a percentage for which entities evaluated get a specific variant. The higher the percentage assigned, the more likely it is that any entity will get that specific variant.
You could just as easily have picked Single Variant
instead of
Multi-Variate
when setting up your rule. This would effectively mean you
have a single distribution, a variant with 100%
chance of being returned.
After creating the above flag, segment and targeting rule, you’re now ready to test how this would work in your application.
The Flipt UI contains an Evaluation Console to allow you to experiment with different requests to see how they would be evaluated.
The main ideas behind how evaluation works are described in more detail in the Concepts documentation.
To test evaluation:
Console
page from the main navigation.Entity ID
field is pre-populated with a random UUID. This represents
the ID that you would use to uniquely identify entities (ex: users) that you
want to test against your flags.Evaluate
.Request Context
and Entity ID
fields.That’s it! You’re now ready to integrate Flipt into your applications and start defining your flags and segments that will enable you to seamlessly rollout new features to your users while reducing risk.