System Design Atlas

Service marketplace

10 / 10Worked example

Final design

Which two pieces of evidence are still missing after the paper design?

The decision card leads back to the assumptions and test cases.

Starting point Distinguish the executable explanatory model from real infrastructure.

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.

Decision map

Architectural components carry decisions, tests and steps to revisit.

Current decisions

Award protection

Relational transaction plus version check

A-17 and L-17 form the boundary for exactly one order

Trade-off
The UI must handle conflicts
Reassess
When ownership is distributed
Follow-up effect

Outbox and stable key

Delivery may fail after commit

Trade-off
Delivery status temporarily remains open
Reassess
When the target system offers a new guarantee

Outstanding evidence

Persistence test
Real database commit under 20 competing awards.
Load test
25 searches/s with defined data set and latency target.

Terms in this step

Return to an earlier step
An architectural decision links back to the assumption supporting it.

Try it yourself

Plan one concurrency test and one load test.

A hint for your attempt

Specify the dataset, peak and success criterion.

Compare with a possible solution
Concurrency
20 commands on A-17/v4, exactly one L-17.
Load
25 searches/s with measured latency distribution.

Apply to your project

Complete the design template for your own marketplace scenario.

The design can now be validated against real data and infrastructure.

Start your own design

Choose a small case from your project. The template collects the ten design tasks and leaves space for your sketches, decisions, and open assumptions. You can edit it in your text editor or note-taking app.

Download design template (.md)
Compare the ten tasks with the example case
  1. Purpose and boundary

    Apply the boundary to a consulting or trades marketplace.

    In the example: The case ends with order L-17 in pending_confirmation.

  2. Requirements

    Apply this separation to a tendering process.

    In the example: Correctness and speed are evidenced separately.

  3. Scale estimates

    Determine a hotspot for a housing market.

    In the example: 25 searches/s and 20 concurrent award attempts require two test runs.

  4. Interfaces

    Define the fingerprint for a booking.

    In the example: K-17 identifies a command together with its fingerprint, not merely a click.

  5. Data and states

    Apply the boundary to another award decision.

    In the example: The winner, losers and L-17 are written together.

  6. Overall architecture

    Draw the same boundary for a reservation confirmation.

    In the example: A relational commit protects the award; an outbox decouples subsequent effects.

  7. Critical flow

    Use the pattern for a one-time allocation.

    In the example: Uniqueness is established at commit time, not in the interface.

  8. Bottlenecks and trade-offs

    Define a diagnostic pair for auctions.

    In the example: A conflict rate can be interpreted only alongside outcomes and causes.

  9. Operations and security

    Define the boundary for a moderation case.

    In the example: Operations can investigate and deliver; the customer retains authority to award the request.

  10. Final design

    Complete the design template for your own marketplace scenario.

    In the example: The domain contract and test cases are defined; actual persistence and load guarantees remain to be verified.