← All Learning Paths

Distributed Systems Engineer

Reason about distributed correctness: CAP, consistency models, quorum, leader election, distributed locks, time and causality, and failover.

technicaladvanced6 nodes12.5h total

Path overview

推理分布式正确性:CAP、一致性模型、法定人数、领导者选举、分布式锁、时间与因果以及故障切换。

Reason about distributed correctness: CAP, consistency models, quorum, leader election, distributed locks, time and causality, and failover.

  1. Execute "Redis Distributed Lock Acquisition", change one constant, and describe how the output diverges from "Serialize critical sections across instances with a Redis lock using SET NX with expiry,".

    Completion criteria: Save two runs of "Redis Distributed Lock Acquisition" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: Sharded Concurrent Map

    ⏱ 0.75h

  2. Run the distributed systems engineer snippet "Sharded Concurrent Map", capture stdout, and show which line demonstrates the documented behavior: "Reduce lock contention with a fixed set of independently locked shards, safe for concurrent".

    Prerequisites: Redis Distributed Lock Acquisition

    Completion criteria: Change one constant in "Sharded Concurrent Map", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: Add Fencing Tokens to Protected Writes

    ⏱ 0.75h

  3. Apply "Add Fencing Tokens to Protected Writes" to a distributed systems engineer task, checking that "Every acquisition receives a strictly increasing token." appears after the "Make a distributed lock safe against a holder that pauses past its lease and resumes after" step.

    Prerequisites: Sharded Concurrent Map

    Completion criteria: Run the steps through "Make a distributed lock safe against a holder that pauses past its lease and resumes after", paste the command output, and mark the line that matches "Every acquisition receives a strictly increasing token."; then rerun with one parameter changed.

    Next step: Run a Multi-Region Failover Drill

    ⏱ 0.5h

  4. Use "Run a Multi-Region Failover Drill" to decide "Record the baseline: Capture the active region, replication lag, request rate, error rate,", then prove the outcome with "The baseline is stored and the secondary is within the allowed replication lag.".

    Prerequisites: Add Fencing Tokens to Protected Writes

    Completion criteria: Record the state "The baseline is stored and the secondary is within the allowed replication lag." at the verification step, then paste the output of "Record the baseline: Capture the active region, replication lag, request rate, error rate," that proves it.

    Next step: Own Keys on a Consistent Hash Ring

    ⏱ 2h

  5. Build "Own Keys on a Consistent Hash Ring" for distributed systems engineer code and verify {owners:[{key:k1,node:a},{key:k2,node:a},{key:k3,node:a}],load:[{node: against both samples.

    Prerequisites: Run a Multi-Region Failover Drill

    Completion criteria: Show the test run for "Own Keys on a Consistent Hash Ring" with two passing samples and one deliberately failing input, with the expected error.

    Next step: Capstone: Distributed Systems Engineer

    ⏱ 0.5h

  6. Ship "Lock acquirer" from "Build a Distributed Lock Service", then prove it with the project's test suite and an acceptance note.

    Prerequisites: Run a Multi-Region Failover Drill, Own Keys on a Consistent Hash Ring

    Completion criteria: Run the project's test command for "Build a Distributed Lock Service", paste the passing output, and attach the acceptance note for "Lock acquirer" with the test name.

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

    ⏱ 4h