System Design Atlas

Service marketplace

02 / 10Worked example

Requirements

Why is a successful click test not enough?

Each requirement receives its own test case.

Starting point Separate the outcome, concurrency and response time.

Assumptions for the example case

Illustrative design: 10,000 searches and 1,000 new requests per day, averaging five offers per request; a peak of 25 searches/s; and 20 concurrent award attempts against the same request. Payment, service delivery and warranty are outside the scope.

Requirement map

Three guarantees with separate evidence.

Requirements (functional)

Further reading
Award
Award A-17 to O-17, then read L-17 together with all offer states.
Protection rule
A withdrawn offer and a second award produce no business effect.

Quality goals (non-functional)

Further reading
Peak search load
Test 25 searches/s with a defined dataset and latency distribution.
Concurrency
20 simultaneous awards on A-17/v4 generate exactly one order.

Terms in this step

Invariant
A rule that applies after each commit.

Try it yourself

Define one successful award test and one rejection test.

A hint for your attempt

Use O-17 and a withdrawn offer.

Compare with a possible solution
Positive
O-17 submitted produces L-17.
Negative
O-17 withdrawn does not generate an order.

Apply to your project

Apply this separation to a tendering process.

Next, calculate the scale.