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
The API writes the internal schedule; the calendar worker synchronizes downstream to the external calendar.
Responsibilities within the application
Responsibilities within the repair API
The modules remain within the API process and share the authoritative work-order data.
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 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?