The overall architecture
What data connects time series and repair process?
The data contract leads to this runtime topology: Measuring station → measurement ingestion → time-series store → suspected leak worker. Control room interface → findings API → findings and work order store. Field service device with a local queue ↔ findings API. Network documentation supplies versioned metering-zone assignments; the post-repair inspection worker links new measurements to the open repair order. Internal modules are domain code boundaries; a separate process has its own operational lifecycle.
Starting point Store exactly one active order per finding.
Assumptions for the example case
This fictional worked design assumes a bounded metering zone, minute-by-minute flow readings, manual confirmation of findings and one active repair order per confirmed finding. Numbers and quality targets are illustrative test assumptions. Automatic valve control, full hydraulic simulation and drinking water quality assessment are outside scope.
Runtime architecture
Runtime architecture · time series and finding records
Water network platform
Suspected leak detection reads measurements; the findings API manages the work order; post-repair inspection links both stores through the open repair case.
Domain modules within the application
Inside the findings process · five responsibilities
Measurement quality and suspected leaks lead to investigation; work orders and post-repair inspection separate work evidence from closure evidence.
Operational boundaries
- Runtime
- Measuring station → measurement ingestion → time-series store → suspected leak worker. Control room interface → findings API → findings and work order store. Field service device with a local queue ↔ findings API. Network documentation supplies versioned metering-zone assignments; the post-repair inspection worker links new measurements to the open repair order.
- Persistence
- Transactional store for measuring station M-111, suspected leak V-111 and finding B-111. The authoritative domain change and its retry result are stored together; external effects require separate evidence.
Connect time series and work orders
Keep the time series separately and reference the finding evidence.
Measurements and repairs have different life cycles.
Millions of values do not overload the order view.
- Alternative considered
- All raw values in the order make processing more difficult.
- Trade-off
- Preserve historical assignment versions.
- Reassess
- Long-term evidence needs archival access.
Terms in this step
- Connect time series and work orders
- Millions of values do not overload the order view.
Try it yourself
Assign raw measurements, the finding and the repair order to their datastores.
A hint for your attempt
Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.
Compare with a possible solution
- First part of the solution
- Raw values with measurement time and quality are in the time-series store.
- Second part of the solution
- The finding and work status reside in the work order store and reference the evidenced measurement range and its network assignment.
Apply to your project
Which corresponding assumption in your project would you check first? Consider this trigger: Long-term evidence needs archival access.