← All Learning Paths

Feature Flag Engineer

Decouple deploy from release: flag taxonomy, fail-safe defaults, staged rollouts, canary analysis, statistical significance, and retiring flags before they rot.

roleintermediate8 nodes10.42h total

Path overview

特性开关不是布尔常量,而是带生命周期的交付资产。本路径从开关分类学与配置的边界讲起,覆盖暗启动、渐进交付与金丝雀判断,再落地开关的测试、审计与放量工作流,收尾于退役流程——大多数团队缺失的那一环。

A feature flag is not a boolean; it is a delivery asset with a lifecycle. This path covers flag taxonomy, dark launches, progressive delivery, canary judgment, testing, auditing, and the retirement most teams skip.

  1. Run "Implement a database-backed feature kill switch with a fail-safe default and an append-only" from "Add a Feature Flag Kill Switch with Fail-Safe Defaults" and confirm the documented result "psql prints CREATE TABLE twice and INSERT 0 1; the recommendations_v2 row exists and is".

    Completion criteria: Deliver a transcript of "Add a Feature Flag Kill Switch with Fail-Safe Defaults" with each step's command and observed state, ending at "Implement a database-backed feature kill switch with a fail-safe default and an append-only".

    Next step: Test Both Sides of a Feature Flag

    ⏱ 0.5h

  2. Apply "Test Both Sides of a Feature Flag" to a feature flags task, checking that "Handlers receive Flags through their constructor, so tests can supply any implementation." appears after the "Cover both flag states in automated tests so a rollout cannot silently break the disabled" step.

    Prerequisites: Add a Feature Flag Kill Switch with Fail-Safe Defaults

    Completion criteria: Show the command for every step of "Test Both Sides of a Feature Flag" and paste the output proving "Cover both flag states in automated tests so a rollout cannot silently break the disabled"; then note the step where "Handlers receive Flags through their constructor, so tests can supply any implementation." appears.

    Next step: Release Behind a Flag and Remove It on Schedule

    ⏱ 0.5h

  3. Execute "Release Behind a Flag and Remove It on Schedule" end to end, then repeat the last step with one parameter changed and compare "Decouple deploy from release and control exposure without leaving permanent conditional".

    Prerequisites: Test Both Sides of a Feature Flag

    Completion criteria: Run "Release Behind a Flag and Remove It on Schedule" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Audit Every Feature Flag Change

    ⏱ 0.5h

  4. Run "Create an auditable trail of feature flag changes without depending solely on a vendor's" from "Audit Every Feature Flag Change" and confirm the documented result "The table accepts inserts only and a repeated webhook delivery is rejected by the unique".

    Prerequisites: Release Behind a Flag and Remove It on Schedule

    Completion criteria: Deliver a transcript of "Audit Every Feature Flag Change" with each step's command and observed state, ending at "Create an auditable trail of feature flag changes without depending solely on a vendor's".

    Next step: Feature Flag Staged Rollout

    ⏱ 0.5h

  5. Carry out "Feature Flag Staged Rollout" on a feature flags project, pausing at the "Deliver a feature safely by separating deployment from exposure and keeping a kill switch" step to verify "The feature is deployable but invisible to users.".

    Prerequisites: Audit Every Feature Flag Change

    Completion criteria: Attach a checklist of "Feature Flag Staged Rollout"'s steps with the observed state after each one and the verification result from "The feature is deployable but invisible to users.".

    Next step: Retire a Feature Flag Safely

    ⏱ 0.5h

  6. Use "Retire a Feature Flag Safely" to decide "No supported cohort still needs the off path.", then prove the outcome with "Remove a release toggle after a feature is fully launched, reducing branch complexity and".

    Prerequisites: Feature Flag Staged Rollout

    Completion criteria: Produce a run log for "Retire a Feature Flag Safely" that ends at "Remove a release toggle after a feature is fully launched, reducing branch complexity and" and mark every step where "No supported cohort still needs the off path." was checked.

    Next step: Bucket Users Deterministically for a Percentage Rollout

    ⏱ 0.5h

  7. Build "Bucket Users Deterministically for a Percentage Rollout" for feature flags code and verify {enabled:[u-102],disabled:[u-100,u-101,u-103]} against both samples.

    Prerequisites: Retire a Feature Flag Safely

    Completion criteria: Show the test run for "Bucket Users Deterministically for a Percentage Rollout" with two passing samples and one deliberately failing input, with the expected error.

    Next step: Capstone: Feature Flag Engineer

    ⏱ 0.42h

  8. Ship "Flag model" from "Build a Feature Flag Service with Targeting Rules", then prove it with the project's test suite and an acceptance note.

    Prerequisites: Retire a Feature Flag Safely, Bucket Users Deterministically for a Percentage Rollout

    Completion criteria: Deliver "Flag model" and paste the test output where the acceptance test passes; include the test name and command.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h