← All Learning Paths

Webhook Engineer

Deliver and consume webhooks reliably: signature verification, idempotent handlers, retries, duplicate diagnosis, and dead-letter handling.

roleintermediate11 nodes16.83h total

Path overview

This path is generated from the curated resource graph.

  1. Read "How to Verify Webhook Signatures" for the "How the signature scheme works" argument, then name the decision in webhook engineer work it would change.

    Completion criteria: Attach a decision log for "How to Verify Webhook Signatures": the "How the signature scheme works" section, one rejected alternative, and the diff of the file you changed.

    Next step: Verify Webhook Signatures with HMAC

    ⏱ 1h

  2. Adapt "Verify Webhook Signatures with HMAC" to a second input and compare the new output with the behavior described in "the class entry point".

    Prerequisites: How to Verify Webhook Signatures

    Completion criteria: Paste the command, the exit code, and the output line matching "Validate webhook payload signatures with HMAC-SHA256, constant-time comparison, and a"; then show a second run with a changed parameter.

    Next step: Verify Webhook HMAC Signatures Safely

    ⏱ 0.75h

  3. Execute "Verify Webhook HMAC Signatures Safely", change one constant, and describe how the output diverges from "the signWebhook entry point".

    Prerequisites: Verify Webhook Signatures with HMAC

    Completion criteria: Paste the command, the exit code, and the output line matching "the signWebhook entry point"; then show a second run with a changed parameter.

    Next step: Implement Webhook Signature Verification That Handles Time

    ⏱ 0.75h

  4. Run "A valid signature passes, and the comparison leaks no timing information about the expected" from "Implement Webhook Signature Verification That Handles Time" and confirm the documented result "Verify the HMAC with constant-time comparison.".

    Prerequisites: Verify Webhook HMAC Signatures Safely

    Completion criteria: Deliver a transcript of "Implement Webhook Signature Verification That Handles Time" with each step's command and observed state, ending at "A valid signature passes, and the comparison leaks no timing information about the expected".

    Next step: Add an Idempotent Webhook Handler

    ⏱ 0.5h

  5. Apply "Add an Idempotent Webhook Handler" to a webhook engineer task, checking that "A request with an invalid signature returns 401 and performs no state change." appears after the "Receive provider webhooks safely when the provider retries, delivers out of order, or sends" step.

    Prerequisites: Implement Webhook Signature Verification That Handles Time

    Completion criteria: Show the command for every step of "Add an Idempotent Webhook Handler" and paste the output proving "Receive provider webhooks safely when the provider retries, delivers out of order, or sends"; then note the step where "A request with an invalid signature returns 401 and performs no state change." appears.

    Next step: Retry Outbound Webhooks with Bounded Exponential Backoff

    ⏱ 0.5h

  6. Execute "Retry Outbound Webhooks with Bounded Exponential Backoff" end to end, then repeat the last step with one parameter changed and compare "Install the queue dependencies and start a local Redis instance for verification.".

    Prerequisites: Add an Idempotent Webhook Handler

    Completion criteria: Run the steps through "psql prints CREATE TABLE and the webhook_failures table exists in the public schema.", paste the command output, and mark the line that matches "Create a durable terminal-failure table so deliveries that exhaust retries survive queue"; then rerun with one parameter changed.

    Next step: Debug Webhook HMAC Signature Mismatch

    ⏱ 0.5h

  7. Apply "Debug Webhook HMAC Signature Mismatch" to a webhook engineer task, checking that "The signature verifies against the raw bytes, proving parsing does not alter the signed" appears after the "Verify webhook signature validation by hashing the exact raw body and reconciling timestamp" step.

    Completion criteria: Deliver a transcript of "Debug Webhook HMAC Signature Mismatch" with each step's command and observed state, ending at "Verify webhook signature validation by hashing the exact raw body and reconciling timestamp".

    Next step: Debug Duplicate Webhook Deliveries

    ⏱ 0.5h

  8. Execute "Debug Duplicate Webhook Deliveries" end to end, then repeat the last step with one parameter changed and compare "Use delivery-id deduplication and timestamp correlation to locate the source of repeated".

    Prerequisites: Debug Webhook HMAC Signature Mismatch

    Completion criteria: Run "Debug Duplicate Webhook Deliveries" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Build an Outbound Webhook Delivery Service

    ⏱ 0.5h

  9. Ship "Sign the payload" from "Build an Outbound Webhook Delivery Service", then prove it with the project's test suite and an acceptance note.

    Prerequisites: Debug Duplicate Webhook Deliveries

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

    Next step: Compute an Exponential Backoff Schedule

    ⏱ 5h

  10. In the "Webhook Engineer" path, implement "Compute an Exponential Backoff Schedule" so JSON object: { attempts, baseMs, factor, maxMs } yields {delays:[100,200,400,800],totalMs:1500}, including the second sample's edge case.

    Prerequisites: Build an Outbound Webhook Delivery Service

    Completion criteria: Submit a solution for "Webhook Engineer" that passes both samples ({attempts:4,baseMs:100,factor:2,maxMs:800} to {delays:[100,200,400,800],totalMs:1500}) and attach the failing case you fixed.

    Next step: Build an Idempotent Payment Webhook Processor

    ⏱ 0.33h

  11. Build "Build an Idempotent Payment Webhook Processor" through its phases, keeping "Signature verification" independently testable.

    Prerequisites: Build an Outbound Webhook Delivery Service, Compute an Exponential Backoff Schedule

    Completion criteria: Ship "Signature verification" 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.

    ⏱ 5h