System Design Atlas

Tax returns and assessment

08 / 10Worked example

Bottlenecks and trade-offs

Which measurements distinguish domain waiting time from technical bottlenecks in return processing?

With the sequence established, examine its possible bottlenecks. Long processing time may result from requests for further evidence or a calculation backlog. Waiting reason, run manifest and delivery status are measured separately. These actions are initial design choices requiring validation, not measured improvements.

Starting point Check amendments again before approval.

Assumptions for the example case

A fictional administrative workflow using an invented calculation model to bind return year, rule revision and draft assessment notice. The model uses an allowance of 100000 cents; only the excess is charged at 10 % and rounded to whole cents using round-half-up. All figures and test targets are illustrative assumptions.

Trace symptoms to their causes

Diagnostic tree

Missing evidenceSignal
Checking for document referenceMeasurement
CaseworkersResponsible
Draft outdatedSignal
Check return revisionMeasurement
ApproversResponsible
Acknowledgement missingSignal
Checking the provider referenceMeasurement
Platform operationsResponsible

Signal, measurement and role remain connected for each cause.

Long processing time may result from requests for further evidence or a calculation backlog. Waiting reason, run manifest and delivery status are measured separately.

Measure before making changes

SymptomValidationTargeted action
High processing time may result from reclaims or computing backlogCheck source freshness, the business reason for waiting and processing time separately.Address the evidenced cause first, then retest the same case.
Correction and release of the same declarationMeasure the duration of the atomic decision and concurrent access.Move lengthy work outside the commit; preserve the business invariant in the concurrency test.
Stale display despite stored evidenceCompare the authoritative version with the projection version.Rebuild the projection; continue deciding state changes from the authoritative state.

High processing time may result from reclaims or computing backlog

Validation
Check source freshness, the business reason for waiting and processing time separately.
Targeted action
Address the evidenced cause first, then retest the same case.

Correction and release of the same declaration

Validation
Measure the duration of the atomic decision and concurrent access.
Targeted action
Move lengthy work outside the commit; preserve the business invariant in the concurrency test.

Stale display despite stored evidence

Validation
Compare the authoritative version with the projection version.
Targeted action
Rebuild the projection; continue deciding state changes from the authoritative state.

Document requests and calculation backlogs have separate signals

Document requests and calculation backlogs have separate signals

Document requests and calculation backlogs have separate signals.

Long processing time may result from requests for further evidence or a calculation backlog. Waiting reason, run manifest and delivery status are measured separately.

Long processing time may result from requests for further evidence or a calculation backlog. Waiting reason, run manifest and delivery status are measured separately. Your test defines the input and expected result.

Alternative considered
Adding compute capacity indiscriminately does not resolve missing business evidence.
Trade-off
Multiple measurement points and separate causes increase the diagnostic effort.
Reassess
Use measurements after the targeted change to decide whether further scaling is needed.

Try it yourself

Name two different causes of delay in this case. Choose a measurement for each and justify the first action.

A hint for your attempt

Record the business reason for waiting, source age and technical compute time separately.

Compare with a possible solution
Case-related diagnosis
Long processing time may result from requests for further evidence or a calculation backlog. Waiting reason, run manifest and delivery status are measured separately. The first step separates these causes based on their own timestamps and conditions.
Hotspot
For amendment and approval of the same return, measure competing accesses and commit duration. Move lengthy external work out of the transaction, then repeat the same concurrency test.

Apply to your project

Which similar display could have two different causes in your project?

Next: approval and technical delivery remain separate roles.