← All Learning Paths

A/B Testing Engineer

Run experiments you can trust: latency percentiles, sampling, metric cardinality, canary gates, load scenarios, and reading significance before you celebrate.

roleintermediate7 nodes11h total

Path overview

A/B 测试的核心风险不是没效果,而是假效果。本路径从统计显著性与金丝雀分析的正确姿势讲起,覆盖影子流量、分位数与采样这些度量基础设施,再落地指标门禁与负载场景,收尾于直方图分位数计算练习。

The core risk of A/B testing is not no effect but false effect. This path covers significance, canary analysis, shadow traffic, percentiles, sampling, metric gates, and histogram quantile practice.

  1. Execute "Gate a Canary on Error Rate and Latency" end to end, then repeat the last step with one parameter changed and compare "Let real traffic decide whether a release continues, instead of relying on a fixed wait time".

    Completion criteria: Run "Gate a Canary on Error Rate and Latency" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Write a Realistic Load Test Scenario

    ⏱ 0.5h

  2. Run "Prove the service meets latency and error targets at the expected traffic shape, not just" from "Write a Realistic Load Test Scenario" and confirm the documented result "200 requests per second for five minutes; the run fails if p95 exceeds 300 ms or errors".

    Prerequisites: Gate a Canary on Error Rate and Latency

    Completion criteria: Run the steps through "Prove the service meets latency and error targets at the expected traffic shape, not just", paste the command output, and mark the line that matches "200 requests per second for five minutes; the run fails if p95 exceeds 300 ms or errors"; then rerun with one parameter changed.

    Next step: Inject an Error Rate Into a Dependency

    ⏱ 0.5h

  3. Apply "Inject an Error Rate Into a Dependency" to a ab testing task, checking that "Every tenth-call window contains three failures, and calling /faults/off stops injection" appears after the "Verify that a partial dependency failure degrades gracefully instead of becoming a full" step.

    Prerequisites: Write a Realistic Load Test Scenario

    Completion criteria: Deliver a transcript of "Inject an Error Rate Into a Dependency" with each step's command and observed state, ending at "Verify that a partial dependency failure degrades gracefully instead of becoming a full".

    Next step: Canary Release with Metric Gates

    ⏱ 0.5h

  4. Use "Canary Release with Metric Gates" to decide "A baseline exists with enough traffic to distinguish signal from noise.", then prove the outcome with "Detect regressions in a new version with limited user exposure before promoting it to all".

    Prerequisites: Inject an Error Rate Into a Dependency

    Completion criteria: Produce a run log for "Canary Release with Metric Gates" that ends at "Detect regressions in a new version with limited user exposure before promoting it to all" and mark every step where "A baseline exists with enough traffic to distinguish signal from noise." was checked.

    Next step: Load Test Before Launch

    ⏱ 1h

  5. Follow "Load Test Before Launch" and record "Determine whether a release meets its latency and error SLOs at expected peak traffic and" at the step where it should appear, using "A scenario file represents realistic behavior, not a single endpoint hammered uniformly." as the check.

    Prerequisites: Canary Release with Metric Gates

    Completion criteria: Deliver a transcript of "Load Test Before Launch" with each step's command and observed state, ending at "Determine whether a release meets its latency and error SLOs at expected peak traffic and".

    Next step: Histogram Quantile with Linear Interpolation

    ⏱ 1h

  6. Implement "Histogram Quantile with Linear Interpolation" so that A JSON object {quantile: number, value: number} with value rounded to two decimals. yields {quantile:0.95,value:300}, including the edge case in the second sample.

    Prerequisites: Load Test Before Launch

    Completion criteria: Show the test run with two passing samples and one deliberately failing input, with the expected error.

    Next step: Capstone: A/B Testing Engineer

    ⏱ 0.5h

  7. Deliver the "Build a Pull-Based Metrics Aggregator" blueprint with "Scrape scheduler" working and "Target manager" recorded as evidence.

    Prerequisites: Histogram Quantile with Linear Interpolation

    Completion criteria: Run the project's test command for "Build a Pull-Based Metrics Aggregator", paste the passing output, and attach the acceptance note for "Scrape scheduler" with the test name.

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

    ⏱ 4h