System Design Atlas

Property maintenance across a service network

06 / 10Worked example

The overall architecture

The calendar is a projection. What conditions ensure the result?

External synchronization may be delayed.

Starting point A new report starts another acceptance review.

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.

Authoritative appointment data

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.

API and relational data store, report store, calendar worker to the external service.

Responsibilities within the application

Responsibilities within the repair API

Report reviewSpecifies the location and damage
Contractor selectionchecks suitability and scope of performance
Appointment allocationReserves technician availability and access together
Work recordConnects the report, acceptance and remedial work
Meldungsprüfung → AnbieterauswahlReviewed work order
Anbieterauswahl → TerminbindungSuitable technician
Terminbindung → LeistungsnachweisAllocated appointment

The modules remain within the API process and share the authoritative work-order data.

Interior modules: Report review: Specifies the location and damage. Contractor selection: Checks suitability and scope of work. Appointment allocation: Reserves technician and access together. Work evidence: Combines work, acceptance and remedial work. The overall architecture shows their assignment to runtime processes and storage.

Runtime components and authoritative data

Runtime boundary
Resident and technician interfaces → Repair API → relational work-order data store. Evidence store holds work reports. Calendar worker reads committed schedule changes and synchronizes to the external calendar service; the internal appointment data remains authoritative.
Module responsibilities
Report review specifies the location and damage. Contractor selection checks suitability and scope. Appointment allocation reserves technician availability and access together. Work evidence connects reports, acceptance and remedial work.

The calendar is a projection.

The calendar is a projection.

The internal appointment datastore determines occupancy.

External synchronization may be delayed.

The relational data store holds confirmed intervals. The calendar worker transmits committed changes and does not decide new allocations.

Alternative considered
Treating the external calendar as a second source of truth creates conflicts.
Trade-off
Changes appear time-delayed externally.
Reassess
Third-party booking sources require an import contract.

Try it yourself

Identify the authoritative data store and the worker’s responsibility.

A hint for your attempt

External synchronization may be delayed.

Compare with a possible solution
Authoritative record
Relational data store holds confirmed intervals.
Worker
Transmits committed changes; it does not decide new appointment allocations.

Apply to your project

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

Step 7: Interval check and binding commit together. What conditions ensure the result?