System Design Atlas

Property maintenance across a service network

10 / 10Worked example

Final design

The end-to-end path ends after remedial work. What conditions ensure the result?

A pure booking flow shows no repair success.

Starting point Only the assigned technician receives the necessary data.

Assumptions for the example case

Fictional repair of a dripping faucet in an apartment. The order contains a fixed scope of work and a confirmed access appointment. All quantities, thresholds and operational objectives of this design are illustrative assumptions.

Repair architecture with test cases

Authoritative appointment data

Resident and technician interfacesAuthenticated input
Repair APIDamage report + appointment + acceptance
Relational order datastoreA-44 · T-44
Evidence storeWork reports
Calendar workerDownstream sync
Calendar serviceExternal
Resident and technician interfaces → Repair APIDamage report / work report
Repair API → Relational work-order data storeA-44 + T-44
Repair API → Evidence storeWork report
Relational work-order data store → Calendar workerCommitted appointment change
Calendar Worker → Calendar ServiceT-44 Synchronize

The API writes the internal schedule; the calendar worker synchronizes downstream to the external calendar.

Topology 6 plus interval test against the authoritative data store and repair test on acceptance; backlinks 2, 5, 9.

Test plan with expected outcomes

Input and initial stateExpected resultReturn to an earlier step
F-44 available → Confirm two appointments for 09:00–10:00 in either arrival orderExactly one confirmed; another conflict.Step 5
T-44 Confirmed → Repeat Identical, then Change StartSame appointment; changed replay conflict.Step 4
Booked interval ends 10:30 → Follow-up appointment 10:29:59 /10:30:00 /10:30:01Only the first collides; half-open interval boundary allows the others.Step 2
Work reported → Reject acceptance, submit new report, acceptRemedial work → Work reported → Accepted; acceptance is never automatic.Step 5

F-44 available → Confirm two appointments for 09:00–10:00 in either arrival order

Expected result
Exactly one confirmed; another conflict.
Return to an earlier step
Step 5

T-44 Confirmed → Repeat Identical, then Change Start

Expected result
Same appointment; changed replay conflict.
Return to an earlier step
Step 4

Booked interval ends 10:30 → Follow-up appointment 10:29:59 /10:30:00 /10:30:01

Expected result
Only the first collides; half-open interval boundary allows the others.
Return to an earlier step
Step 2

Work reported → Reject acceptance, submit new report, accept

Expected result
Remedial work → Work reported → Accepted; acceptance is never automatic.
Return to an earlier step
Step 5

End-to-end test and unresolved agreements

First end-to-end path
Book an appointment with a travel buffer, test concurrent scheduling conflicts and follow the repair through remedial work to acceptance.
Clarify before real use
Allocation, cost releases, access protection and real cancellation consequences require concrete organizational rules.

The end-to-end test finishes after remedial work.

The end-to-end test finishes after remedial work.

Test scheduling collisions and acceptance together.

A pure booking flow shows no repair success.

Test the 10:30 boundary against the authoritative data store; revisit steps 2 and 5 on failure. Remedial work stays open until acceptance; revisit steps 5 and 9 on failure.

Alternative considered
Happy Path leaves deficiency processing open.
Trade-off
The test requires two reports.
Reassess
Further trades follow after proof.

Try it yourself

Assign interval and acceptance tests to the design steps to revisit on failure.

A hint for your attempt

A pure booking flow shows no repair success.

Compare with a possible solution
Appointment
Test the 10:30 boundary against the authoritative data store; revisit steps 2 and 5 on failure.
Performance
Remedial work stays open until acceptance; revisit steps 5 and 9 on failure.

Apply to your project

What is the equivalent of “The end-to-end path ends after remedial work” in your own project?

Transfer the decisions and their counterexamples to the editable design template.

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

    What is the equivalent of “Completion report opens acceptance” in your own project?

    In the example: Property management reviews the work report.

  2. Requirements

    What is the equivalent of “travel time belongs to the occupancy.” in your own project?

    In the example: The appointment blocks an additional 30 minutes.

  3. Scale estimates

    What is the equivalent of “appointment load and contention differ.” in your own project?

    In the example: Run peak-load and single-worker contention tests separately.

  4. Interfaces

    What is the equivalent of “A replay does not postpone an appointment.” in your own project?

    In the example: The key binds the time and technician.

  5. Data and states

    What is the equivalent of “Remedial work remains open” in your own project?

    In the example: A new report starts another acceptance review.

  6. Overall architecture

    What is the equivalent of “The calendar is a projection.” in your own project?

    In the example: The internal appointment datastore determines occupancy.

  7. Critical flow

    Where does your project need to commit a check and its allocation atomically?

    In the example: The check and insertion are atomic.

  8. Bottlenecks and trade-offs

    Which equivalent has “delay needs a concrete reason.” in your own project?

    In the example: Record waiting reasons separately.

  9. Operations and security

    How does your project restrict access to sensitive details to the relevant work order?

    In the example: Only the assigned technician receives the necessary data.

  10. Final design

    What is the equivalent of “The end-to-end path ends after remedial work” in your own project?

    In the example: Test scheduling collisions and acceptance together.