System Design Atlas

Multi-stage request approval

03 / 10Worked example

Scale estimates

Which assumption determines your concurrency test, and which determines your worklist?

Assume 2,000 requests per eight-hour working day: 250 requests per hour, or 0.0694 per second on average. Another 25 percent receive a budget task. This 25 percent refers to requests that actually reach budget review after successful business review. Additional revisions are excluded from the baseline calculation.

Starting point Step 2 has established the atomic decision as a protective rule.

Assumptions for the example case

Illustrative design: an internal procurement request for 6,000 euros undergoes business review followed by budget review. The inclusive budget threshold is 5,000 euros. These figures are assumptions rather than operational measurements. Ordering, payment, contract law and automatic decisions are outside the scope.

Four orders of magnitude for A-17

Illustrative scale · Separate throughput, tasks and active cases

Test peak: 20 decisions/sTargeted for simultaneous approvals and version conflicts
Requests2,000 ÷ 8 h = 250/hAverage over eight working hours
Average2,000 ÷ 28,800 s = 0.0694/sActual arrivals are not assumed to be evenly distributed
Tasks2.000 × (1 + 25 %) = 2,500/Working day25% reach budget review; new revisions add further tasks
Decisions2,500 ÷ 28,800 s = 0.0868/sAdditional assumption: each task is decided exactly once
Ongoing cases2000/day × 5 working days = 10,000Little’s Law: constant arrivals and a consistent working-day time basis
  • Processing
  • Human work
  • Contention

Submission: 0.0694 requests/s. With one decision per task, the average is 0.0868 decisions/s. The separate load profile sends 20 decision attempts/s; the concurrency test checks two commands against v7.

Throughput, task count and stored volume follow from the same illustrative assumption but remain separate design quantities.

Reproducible assumptions

  1. 01

    Applications per hour

    250/h

    2,000 requests ÷ 8 working hours

    For the designSizes normal submission traffic and worklists.

  2. 02

    Tasks per day

    2,500/day

    2000 business review tasks + 0.25 × 2000 budget tasks = 2,500 tasks/working day

    For the designSizes assignment, delegation and backlog handling.

  3. 03

    Ongoing requests

    10,000

    2000/day × 5 working days average processing time

    For the designLittle’s Law applies here to a steady-state example with constant arrivals and a consistent working-day time basis.

  4. 04

    Average decision rate

    0.0868/s

    2,500 tasks ÷ 28,800 seconds of work, with exactly one decision per task

    For the designComparable with 20 decision attempts/s only under this additional assumption. Withdrawal, new revisions and retries are tested separately.

Load test start decision

Decision path

Versioned transaction first

The business effect requires atomic version and status checks; average load is small relative to the risk of conflicts.

Trade-off
A single authoritative datastore initially limits horizontal distribution.
Reassess
Revisit when measured lock waits, backlogs or organisational scope increase.
Test peak

Test 20 decisions/s separately

Test concurrent decisions and revisions explicitly above the average load.

Trade-off
The peak is a test profile, not a load forecast.
Reassess
With real daily and peak measurements.

Terms in this step

Little's Law
In a steady-state system, Little’s Law relates the average number of active cases to arrival rate and average time in the system. All units must use the same time basis.

Try it yourself

Calculate the daily number of tasks in 10 percent budget cases and formulate a separate conflict test.

A hint for your attempt

Every request has one business review task; only a subset has a second task.

Compare with a possible solution
Number of tasks
2,000 × (1 + 0.10) = 2,200 tasks/day. Test: counts grouped by rule version verify this calculation.
Conflict path
Two clients send an F-17 decision and R-4 submission against R-3/v7. In either winner order, exactly one command takes effect and the other receives 409. After rereading, the user may deliberately resubmit against v8 as a new attempt.

Apply to your project

Which load assumption in your project is mean value, which consciously chosen test peak?

With size and conflict profile, stable command contracts can be defined in the next step.