← All Learning Paths

Workflow Automation Engineer

Automate multi-step work that must not lose a step: webhooks, saga orchestration, outbox relay, event schema versioning, and retries that respect backoff budgets.

roleintermediate7 nodes12.92h total

Path overview

工作流自动化的敌人是部分成功:某一步成功后进程崩溃,系统就进入未知态。本路径从 Webhook 与编排协同选型讲起,经 Saga 与持久化执行的语义保障,落地幂等处理器、发件箱转发与事件版本化,收尾于签名排障与转发器项目。

The enemy of workflow automation is partial success: one step commits, the process dies, and the system enters an unknown state. This path covers webhooks, sagas, durable execution, outbox relay, and event versioning.

  1. Compare "Read the raw body, not the parsed JSON" with "Verify with constant-time comparison" in "How to Verify Webhook Signatures" and state which trade-off you would accept in workflow code.

    Completion criteria: Attach a decision log for "How to Verify Webhook Signatures": the "Read the raw body, not the parsed JSON" section, one rejected alternative, and the diff of the file you changed.

    Next step: Add an Idempotent Webhook Handler

    ⏱ 1h

  2. Execute "Add an Idempotent Webhook Handler" end to end, then repeat the last step with one parameter changed and compare "A request with an invalid signature returns 401 and performs no state change.".

    Prerequisites: How to Verify Webhook Signatures

    Completion criteria: Run "Add an Idempotent Webhook Handler" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Retry Outbound Webhooks with Bounded Exponential Backoff

    ⏱ 0.5h

  3. Run "psql prints CREATE TABLE and the webhook_failures table exists in the public schema." from "Retry Outbound Webhooks with Bounded Exponential Backoff" and confirm the documented result "Create a durable terminal-failure table so deliveries that exhaust retries survive queue".

    Prerequisites: Add an Idempotent Webhook Handler

    Completion criteria: Deliver a transcript of "Retry Outbound Webhooks with Bounded Exponential Backoff" with each step's command and observed state, ending at "Create a durable terminal-failure table so deliveries that exhaust retries survive queue".

    Next step: Add an Outbox Relay

    ⏱ 0.5h

  4. Apply "Add an Outbox Relay" to a workflow task, checking that "Write the business row and the outbox event in one transaction." appears after the "Either both rows exist or neither does." step.

    Prerequisites: Retry Outbound Webhooks with Bounded Exponential Backoff

    Completion criteria: Deliver a transcript of "Add an Outbox Relay" with each step's command and observed state, ending at "Either both rows exist or neither does.".

    Next step: Add Event Schema Versioning with an Envelope

    ⏱ 0.5h

  5. Execute "Add Event Schema Versioning with an Envelope" end to end, then repeat the last step with one parameter changed and compare "Evolve event payloads without breaking existing consumers or rewriting historical events.".

    Prerequisites: Add an Outbox Relay

    Completion criteria: Run "Add Event Schema Versioning with an Envelope" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Apply Requests Exactly Once by Key

    ⏱ 0.5h

  6. Build "Apply Requests Exactly Once by Key" for workflow code and verify {applied:[{key:k1,amount:100},{key:k2,amount:50}],duplicates:[k1],char against both samples.

    Completion criteria: Show the test run for "Apply Requests Exactly Once by Key" with two passing samples and one deliberately failing input, with the expected error.

    Next step: Build a Webhook Forwarder with Signed Retries

    ⏱ 0.42h

  7. Build "Build a Webhook Forwarder with Signed Retries" through its phases, keeping "Delivery signs the body with HMAC-SHA256 and sends the signature and timestamp headers" independently testable.

    Prerequisites: Apply Requests Exactly Once by Key

    Completion criteria: Ship "Delivery signs the body with HMAC-SHA256 and sends the signature and timestamp headers" and attach the test log plus a one-page acceptance note mapping the feature to the passing test.

    Next step: Apply this path in a capstone project and review the related resources.

    ⏱ 6h