This module shows how to perform a canary release by using toggle system through flagship4j
- A JDK installed (JAVA 8+)
check with the following command, and you should see the JVM version# cd to project root ./gradlew -v
# cd to project root
docker compose up- open http://localhost:18000/ in browser.
- enter
canary-flagin the add-flag field.
- click the "Create New Flag" button.

- click the "canary-flag" row in the list and modify key and press "Save Flag" button.
- Flag Key: unique key representation of the flag (toggle)
- create one "Variant" key =
on.
- Variant: the possible result of the evaluation API
- create a "Segment" with 25% Rollout (or the init rollout percentage you want) and any
name(namewon't affect evaluation result).
- Segment: the smallest unit for setting the result of a toggle
- edit the "Distribution" to whatever you like (just make sure the sum is 100).
- Distribution: the distribution percentage setting of variants in a segment.
- back to the top and enable the toggle

- you can now run the demo app and set a high rollout percentage for the later iteration (remember to click "Save Segment Setting" button)

- execute the following command
# cd to project root
./gradlew -q --console plain :examples:openfeature-canary-release-example:run