For the complete documentation index, see llms.txt. This page is also available as Markdown.

Designing Feature Flags

Learn the design process for releasing features safely with Feature Flags.

Feature Flags let you flexibly control the scope and pace of a feature release.

Before releasing, design the feature, the audience, and the criteria you will observe. This document walks through the process using a welcome image change as an example.

1

Define the feature and its states

Clearly decide what experience to show in the on and off states. Typically, the off state keeps the existing feature and the on state serves the new feature.

The developer in charge implements the new feature. They also integrate the Hackle SDK and the Feature Flag evaluation code.

Example

Company A, which operates a ball sports community, wants to change its welcome image. Concerned about how existing users will react, they serve the new image to a subset of users first.

  • On: the new welcome image featuring various sports

  • Off: the existing welcome image prominently featuring a ball

2

Decide the release strategy

Decide who will receive the new feature and how much initial traffic to allocate. Also decide how long you will observe the reaction and the criteria for adjusting traffic.

Example

  • Initial traffic: show the new image to 10% of users.

  • Observation criteria: if there is any related reaction within 2~3 days, review the content.

  • Expansion plan: if there is no noticeable reaction, increase traffic by 10% each week.

3

Review the results and clean up

Adjust traffic while checking user reactions and system health. Once you have collected enough results, decide which experience to apply for good.

You can roll the new feature out to all users or revert to the existing feature. After deciding, ask the developer in charge to clean up the Feature Flag code.

Last updated