System Design Atlas

Service marketplace

03 / 10Worked example

Scale estimates

Which number tests uniqueness?

Daily volumes provide averages; award contention needs a targeted hotspot test.

Starting point Find the profile that uses the same request version.

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.

Load model

Illustrative scale · Medium, peak and conflict burden

Base load10,000 searches/day = 0.116/s in the daily average
Peak load25 searches/s as the assumed peak
Domain hotspot20 awards on A-17/v4; maximum one commit

The invoices provide a starting assumption. An isolated load test shall generate the tip and the technical hotspot separately.

Average load, peak load and contention are separate.

Calculations

  1. 01

    Searches

    0.116/s

    10,000 ÷ 86,400

    For the designThe average does not determine peak capacity.

  2. 02

    Offers

    5000/day

    1000 × 5

    For the designWrite load is spread across many requests.

  3. 03

    Award

    20 simultaneously

    20 commands on A-17/v4

    For the designA single key becomes a hotspot.

Terms in this step

Hotspot
Many changes compete on the same identity.

Try it yourself

Assign the three numbers to a test goal.

A hint for your attempt

Throughput and contention test different properties.

Compare with a possible solution
25/s
Search path.
20 simultaneously
Award invariant.

Apply to your project

Determine a hotspot for a housing market.

The interfaces encode these rules.