System Design Atlas

Account posting and bank transfers

09 / 10Worked example

Operations and security

What reconciliation allows safe restart after a backup?

The measurement points require responsible roles, responses and evidence of resolution. Payment operations handles domain investigation according to the role contract; platform operations coordinates technical recovery where assigned by the case.

Starting point Measure lock duration and account distribution; keep network calls outside the transaction.

Assumptions for the example case

Our own fictitious example draft: transfer in EUR with positive whole cent amounts; a debited customer account and an internal settlement account; external settlement with status query; reversal posting after proven rejection. Figures and quality goals are illustrative test assumptions. Outside are foreign exchange, interest, fees, regulatory approval check and a complete bank ledger.

Signal, ownership and resolution

Operational lanes · signal, role and evidence of resolution

RecoverySignal
Recovery → Platform operationsJournal/Outbox inbox comparison
Platform operationsShared backup checkpoint
Settlement openSignal
Settlement open → Payment operationsQuery A-41 externally
Payment operationsFinal proof or further open
Status accessSignal
Status access → Customer serviceAuthorize object and action
Customer serviceDocumented U-41 state

A missing result remains visibly open. Each track ends with its own reliable proof.

A backup contains an older status than the external settlement. Block outgoing orders and compare them against external references. Payment operations confirms the matching, platform operations provides data.

Access and recovery

Object-level authorisation
The account holder receives only the items necessary for their assigned task. Each change is checked on the server side against role and concrete object. Payment operations receive documented clearing rights.
Evidence rather than assumption
After external success, the response is lost. U-41 remains open; A-41 is queried. A time-out does not allow a reversal posting. Only a definitive rejection triggers exactly a reversal posting.
Operating agreement
Agree retention periods, on-call coverage, recovery time and acceptable data loss before live operation. Test restoration from backup using the open case from step 7. Keep sensitive payloads out of operational logs.

Reconcile on recovery

Reconcile on recovery

Pause outgoing instructions and reconcile them using external references.

A backup contains an older status than the external settlement.

Payment operations confirms reconciliation; platform operations provides the data.

Alternative considered
Immediate resending can repeat historical effects.
Trade-off
Restart requires a technical control step.
Reassess
A proven lossless replication changes the recovery assumption.

Terms in this step

Reconcile on recovery
Payment operations confirms reconciliation; platform operations provides the data.

Try it yourself

A backup shows A-41 still open, the external service already processed. Determine role and release criterion for restart.

A hint for your attempt

Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.

Compare with a possible solution
First part of the solution
Payment operations compare A-41 with the external proof; platform operations provides the restored journal status.
Second part of the solution
Only after a documented comparison is retransmission released. The confirmed settlement does not generate a second charge and no automatic reversal posting.

Apply to your project

Which corresponding assumption in your project would you check first? Use as an occasion: A proven lossless replication changes the recovery assumption.

Step 10: Test the first payment flow.