The overall architecture
Notifications follow the domain commit. Which conditions ensure this outcome?
A notification service failure must not lose consent.
Starting point Investigation ends with a documented agreement.
Assumptions for the example case
A fictional placement service for household help in fixed two-hour sessions. Service workers confirm appointments themselves; disputed work remains under review. All quantities, thresholds and operational targets in this design are illustrative assumptions.
Domain records and notifications
Domain records and notifications
The API and data store own consent; delivery status does not change the domain agreement.
Responsibilities within the application
Modules of the service API
Needs, matching, agreement and work records retain their own responsibilities.
Runtime components and authoritative data
- Runtime boundary
- Household and worker interface → service API → relational data store. Evidence storage retains reports. The notification worker reads committed notifications → external service; delivery status does not change consent. The mediation team uses a separately authorised dispute view.
- Module responsibilities
- Needs clarification fixes the scope and necessary access instructions. Matching checks suitability and availability. Appointment agreement combines consent from both parties. Work records retain actual work, consent and objections.
Notifications follow the business transaction commit.
The worker sends committed notifications.
A notification service failure must not lose consent.
Owns consent, appointments and the review state. Delivers messages; the report store retains evidence and does not decide consent.
- Alternative considered
- Sending directly before commit may announce incorrect appointments.
- Trade-off
- Notification can follow.
- Reassess
- High delay justifies expansion.
Try it yourself
Assign API, Worker, and Report store.
A hint for your attempt
A notification service failure must not lose consent.
Compare with a possible solution
- API
- Owns consent, appointments and the review state.
- Worker
- Delivers messages; the report store retains evidence and does not decide consent.
Apply to your project
How does “Notifications follow the domain commit” apply to your own project?