The overall architecture
Large raw data is outside the receiving commit. What conditions ensure the result?
File transfer takes longer than the short custodian change.
Starting point The previous custodian remains authoritative until acceptance is confirmed.
Assumptions for the example case
Fictitious training laboratory with an aqueous control sample. The draft documents custody changes and results; diagnostic interpretation and clinical decisions are outside the case. All quantities, thresholds and operational objectives of this design are illustrative assumptions.
Device adapter and authorised reviewer
Device adapter and authorised reviewer
The inbox and domain state share the relational data store; raw data stays separately in object storage.
Responsibilities within the application
Laboratory modules
Sample receipt, chain of custody and result release belong to the API; measurement association belongs to the worker.
Runtime components and authoritative data
- Runtime boundary
- Scanning interfaces → laboratory API → relational sample data store. The device adapter runs as a separate process, receives instrument data, writes raw data to object storage and writes a handoff task to the same relational store. The assignment worker processes that task. The authorised reviewer uses the API. The inbox and domain state share the relational store; the inbox is not a second database.
- Module responsibilities
- Sample receipt: Checks identity, status and acceptance window.; Chain of custody: Tracks confirmed custody changes and open transfers.; Measurement association: Connects raw measurement with sample and method.; Result release: Freezes reviewed result revisions.
Large raw data files remain outside the receipt commit.
Store raw data immutably and associate it by hash.
File transfer takes longer than the short custodian change.
The laboratory API handles scans; the device adapter accepts data; the assignment worker performs the domain-level association. A relational data store holds the inbox and business state; the object store holds raw bytes. The inbox is not a second database.
- Alternative considered
- Raw files in the scan lock extend each acceptance.
- Trade-off
- Orphaned files need a cleanup rule.
- Reassess
- Very large series of devices justify further workers.
Try it yourself
Assign API, device adapter, and measurement mapping processes; name their authoritative data store.
A hint for your attempt
File transfer takes longer than the short custodian change.
Compare with a possible solution
- Runtime
- Laboratory API handles scans; device adapter accepts data; assignment worker performs the domain association.
- Data management
- A relational data store holds inbox and domain state; object store holds raw bytes. The inbox is not a second database.
Apply to your project
What is the equivalent of “Big raw data is outside the receiving commit.” in your own project?