← All Learning Paths

Microservice Developer

Split a system without paying the distributed tax twice: modular monoliths, sagas, outbox, bulkheads, circuit breakers, and a path away from the big ball of mud.

roleadvanced8 nodes12.83h total

Path overview

微服务不是拆得越细越好,而是每一步拆分都要补齐一致性、隔离与部分失败的答案。本路径从先考虑模块化单体出发,经 Saga、发件箱、舱壁与熔断的完整韧性工具箱,收尾于 Netflix 级案例与可运行的多服务模板。

Microservices are not about splitting finer; each cut must answer consistency, isolation, and partial failure. This path walks from modular monoliths through sagas, outbox, bulkheads, and circuit breakers to a runnable template.

  1. Compare "The three states" with "Wrap the call" in "How to Build a Circuit Breaker in Node.js" and state which trade-off you would accept in microservices code.

    Completion criteria: Record a short walkthrough of "How to Build a Circuit Breaker in Node.js" with timestamps at "The three states" and "Wrap the call", plus the commit that applies it.

    Next step: Add an Outbox Relay

    ⏱ 1h

  2. Execute "Add an Outbox Relay" end to end, then repeat the last step with one parameter changed and compare "Avoid the dual-write problem where a database commit succeeds but the event publish fails,".

    Prerequisites: How to Build a Circuit Breaker in Node.js

    Completion criteria: Run the steps through "Avoid the dual-write problem where a database commit succeeds but the event publish fails,", paste the command output, and mark the line that matches "Either both rows exist or neither does."; then rerun with one parameter changed.

    Next step: Isolate Downstreams with Bulkhead Pools

    ⏱ 0.5h

  3. Run "Stop a single slow dependency from starving unrelated requests by partitioning pools and" from "Isolate Downstreams with Bulkhead Pools" and confirm the documented result "Reporting traffic can occupy at most four connections and never blocks payment clients".

    Prerequisites: Add an Outbox Relay

    Completion criteria: Deliver a transcript of "Isolate Downstreams with Bulkhead Pools" with each step's command and observed state, ending at "Stop a single slow dependency from starving unrelated requests by partitioning pools and".

    Next step: Add a Circuit Breaker Around a Dependency

    ⏱ 0.5h

  4. Apply "Add a Circuit Breaker Around a Dependency" to a microservices task, checking that "After five failures the breaker opens; calls fail immediately until the cooldown, then one" appears after the "Stop calling a failing dependency after a threshold, fail fast to callers, and probe" step.

    Prerequisites: Isolate Downstreams with Bulkhead Pools

    Completion criteria: Run "Add a Circuit Breaker Around a Dependency" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Netflix Microservices with Node.js

    ⏱ 0.5h

  5. Compare "Netflix Microservices with Node.js"'s Event-driven architecture with Kafka design with your microservices stack and list the trade-off "Auto-scaling with Kubernetes" implies.

    Prerequisites: Add a Circuit Breaker Around a Dependency

    Completion criteria: Draw the responsibility table for "Netflix Microservices with Node.js" and mark one place where your microservices stack would choose differently.

    Next step: Docker Compose Microservices

    ⏱ 1.5h

  6. Scaffold "Docker Compose Microservices" with "A microservices architecture with Docker Compose featuring an API gateway, user service,", replace one generated module, and keep Best for distributed systems needing Docker Compose orchestration, an API gateway, separate working.

    Prerequisites: Netflix Microservices with Node.js

    Completion criteria: Run "A microservices architecture with Docker Compose featuring an API gateway, user service,", replace one module, and show the entry point still returns the documented output; include the diff.

    Next step: Check Event Consumers Against Schema Versions

    ⏱ 1.5h

  7. Build "Check Event Consumers Against Schema Versions" for microservices code and verify {accepted:[{event:e1,consumers:[audit,billing]},{event:e2,consumers:[] against both samples.

    Prerequisites: Docker Compose Microservices

    Completion criteria: Show the test run for "Check Event Consumers Against Schema Versions" with two passing samples and one deliberately failing input, with the expected error.

    Next step: Capstone: Microservice Developer

    ⏱ 0.33h

  8. Build "Build a Circuit Breaker Proxy" through its phases, keeping "Half-open probe with gradual recovery" independently testable.

    Prerequisites: Docker Compose Microservices, Check Event Consumers Against Schema Versions

    Completion criteria: Run the project's test command for "Build a Circuit Breaker Proxy", paste the passing output, and attach the acceptance note for "Half-open probe with gradual recovery" with the test name.

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

    ⏱ 4h