Investigating bottlenecks
Which measurement explains waiting time on a single pooled account?
The failure sequence shows where load and retries interact. The diagnostic plan treats measured waiting time, processing duration and business conflicts separately.
Starting point Query A-41 and retain abwicklung_offen until the outcome is evidenced.
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.
Diagnose the limiting resource
Cause tree · distinguish backlog, locks and domain conflicts
20 transfers/s load the worker; two 7,000-cent commands debit the same balance and require a single winner.
From signal to action
| Signal | Validation | Reaction |
|---|---|---|
| Reduce lock wait time | The journal responds slowly only to pooled accounts. | Measure lock duration and account distribution; keep network calls outside the transaction. |
| Conflicts on the shared entity | Two different transfers of 7,000 cents each compete at 10,000 cents. In both commit sequences, exactly one wins; the final balance is 3,000 cents, the journal contains exactly their two lines. | Count expected conflicts separately from technical errors. |
| Peak test profile exceeded | 20 transfers/s for 900 s = 18,000 transfers | The load profile reaches the limit despite short transactions. |
Reduce lock wait time
- Validation
- The journal responds slowly only to pooled accounts.
- Reaction
- Measure lock duration and account distribution; keep network calls outside the transaction.
Conflicts on the shared entity
- Validation
- Two different transfers of 7,000 cents each compete at 10,000 cents. In both commit sequences, exactly one wins; the final balance is 3,000 cents, the journal contains exactly their two lines.
- Reaction
- Count expected conflicts separately from technical errors.
Peak test profile exceeded
- Validation
- 20 transfers/s for 900 s = 18,000 transfers
- Reaction
- The load profile reaches the limit despite short transactions.
Reduce lock wait time
Measure lock duration and account distribution; keep network calls outside the transaction.
The journal responds slowly only to pooled accounts.
A short local transaction protects funds with less waiting time.
- Alternative considered
- A balance cache as a writing authority may be obsolete.
- Trade-off
- Accounts remain serialized when writing.
- Reassess
- The load profile reaches the limit despite short transactions.
Terms in this step
- Reduce lock wait time
- A short local transaction protects funds with less waiting time.
Try it yourself
Diagnose high latency on one pooled account while total load remains normal. Name the measurement and the first change.
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
- Measure account-specific lock-up time and transaction duration; external network wait time within the lock would be a concrete cause.
- Second part of the solution
- Run network calls after the local commit. The balance check remains atomic; a cache may not take over the binding funds check.
Apply to your project
Which corresponding assumption in your project would you check first? Use as an occasion: The load profile reaches the limit despite short transactions.