Payments Engineer
Build money-safe systems: idempotent payments, exactly-once effects, outbox and saga patterns, monetary arithmetic, and failure-spike response.
Path overview
构建资金安全系统:幂等支付、精确一次效果、发件箱与 Saga 模式、金额运算与故障激增响应。
Build money-safe systems: idempotent payments, exactly-once effects, outbox and saga patterns, monetary arithmetic, and failure-spike response.
Execute "Allocate Money in Cents Without Rounding Drift", change one constant, and describe how the output diverges from "Split an integer cent total across weighted shares with the largest remainder method so".
Next step: Idempotency Key Store With Response Replay
⏱ 0.75h
Run the payments engineer snippet "Idempotency Key Store With Response Replay", capture stdout, and show which line demonstrates the documented behavior: "Deduplicate retried mutations by idempotency key, share in-flight work, replay stored".
Prerequisites: Allocate Money in Cents Without Rounding Drift
Next step: Split Money Amounts with Decimal Without Loss
⏱ 0.75h
Adapt "Split Money Amounts with Decimal Without Loss" to a second input and compare the new output with the behavior described in "Split a Decimal amount across integer weights while keeping cent-level totals exact,".
Prerequisites: Idempotency Key Store With Response Replay
Next step: Add Idempotency Keys to a Write Endpoint
⏱ 0.75h
Execute "Add Idempotency Keys to a Write Endpoint" end to end, then repeat the last step with one parameter changed and compare "Make a non-idempotent POST endpoint safe to retry by implementing idempotency-key handling.".
Prerequisites: Split Money Amounts with Decimal Without Loss
Next step: Payment Failure Spike Response Workflow
⏱ 0.5h
Follow "Payment Failure Spike Response Workflow" and record "Stop revenue loss from payment failures by fast isolation of cause, safe queueing of failed" at the step where it should appear, using "A per-minute revenue impact number exists, converting the incident to a financial severity." as the check.
Prerequisites: Add Idempotency Keys to a Write Endpoint
Next step: Stripe Go Payment Processing
⏱ 0.5h
Read "Stripe Go Payment Processing" as an architecture drill: for each Go, postgres, kafka, Redis component, state what it owns and what it delegates.
Prerequisites: Payment Failure Spike Response Workflow
Next step: Apply Requests Exactly Once by Key
⏱ 1.5h
In the "Payments Engineer" path, implement "Apply Requests Exactly Once by Key" so JSON object: { requests: [{ key, amount }] } yields {applied:[{key:k1,amount:100},{key:k2,amount:50}],duplicates:[k1],char, including the second sample's edge case.
Prerequisites: Stripe Go Payment Processing
Next step: Capstone: Payments Engineer
⏱ 0.42h
Deliver the "Build an Idempotent Payment Webhook Processor" blueprint with "Raw body capture" working and "Signature verification" recorded as evidence.
Prerequisites: Stripe Go Payment Processing, Apply Requests Exactly Once by Key
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h