Architecture is proposed and there are also alternative architectures proposed
This commit is contained in:
1 parent
ccf9041183
commit
3426236c6c
24 files changed
+2516
No files matched your search
@@ -0,0 +1,51 @@
|
||||
# Health App architecture proposal
|
||||
|
||||
**Complete proposed design — 2026-10-13.** Select a modular monolith: one HTTPS application process with explicit API/access, Profile, Observations, Analytics, Overview and Guidance modules; one PostgreSQL database with owned health schemas; a transient administrative installation utility.
|
||||
|
||||
The choice follows comparison with the existing five-service architecture and a reduced service topology. Energy efficiency is an important objective, expressed as reasoned hypotheses with counter-effects, not measured savings. Assumptions: modest interactive synthetic prototype workload, Linux/systemd default, no established independent-feature scaling or isolation requirement. Capacity, physical hosting, clinical review and production recovery targets remain recorded unknowns.
|
||||
|
||||
The user selected clarification **3**, authorizing evaluation of all topologies and documentation of necessary US-16 revisions. The proposal preserves US-01–US-15 and common functional behaviour. It **does not satisfy original US-16 independent feature-service installation/topology clauses**; every affected criterion is explicitly recorded in the revision and traceability register. No original requirement has been edited.
|
||||
|
||||
## Documents
|
||||
|
||||
| Artifact | Purpose |
|
||||
| --- | --- |
|
||||
| [Software architecture](software-architecture.md) | Authoritative boundaries, responsibilities, contracts, domain, data/transactions, security, failures, deployment and runtime specification |
|
||||
| [Input inventory](input-inventory.md) | All 63 supplied files, purpose and authority; application source links not followed |
|
||||
| [Requirements and constraints](requirements-and-constraints.md) | Binding behaviours, selected/reconsidered design decisions, assumptions and unknowns |
|
||||
| [Requirements traceability](requirements-traceability.md) | 146 individual common/US-01–US-15 acceptance entries, including outline cases; story/functional-rule mappings and explicit gaps |
|
||||
| [Architectural decisions](architecture-decisions.md) | Three feasible alternatives, selection rationale and eight significant ADRs |
|
||||
| [Energy hypotheses](energy-hypotheses.md) | Anticipated mechanisms/effects, assumptions/dependencies and counter-effects |
|
||||
| [Risks and open questions](risks-and-open-questions.md) | Operational, clinical, behavioural and architectural trade-offs |
|
||||
| [US-16 revision](us16-revision.md) | All nine original deployment ACs and installer-addendum compatibility/revision obligations |
|
||||
| [Diagram guide and coverage](diagram-guide.md) | View conventions, domain and conceptual-class coverage; cross-page references |
|
||||
| [Validation](validation.md) | Completed artefact, coverage, diagram, link and preservation verification; limits |
|
||||
|
||||
## Editable diagrams
|
||||
|
||||
Native uncompressed `.drawio` files contain individually editable text, shapes and connectors. Open directly in diagrams.net/Draw.io; page tabs separate views. Classes are design concepts, not existing source declarations.
|
||||
|
||||
| File | Pages |
|
||||
| --- | --- |
|
||||
| [System context](diagrams/01-system-context.drawio) | Actors, system boundary and reviewed external reference sources |
|
||||
| [Logical components](diagrams/02-logical-components.drawio) | One-process modules, responsibilities and typed interfaces/dependencies |
|
||||
| [Domain model](diagrams/03-domain-model.drawio) | Identity/access; observations/selection; derived views/clinical provenance |
|
||||
| [Conceptual classes](diagrams/04-conceptual-classes.drawio) | Access/Profile; Observations; Analytics; Overview/Guidance — 32 individual classifiers |
|
||||
| [Data ownership](diagrams/05-data-ownership.drawio) | Owned schemas, controlled patient reference, runtime role and operational state |
|
||||
| [Deployment](diagrams/06-deployment.drawio) | Default local Linux and optional separate database host |
|
||||
| [Sequences](diagrams/07-sequences.drawio) | Login/create; actual-owner read/correction/deletion; snapshot calculations/overview; installation |
|
||||
|
||||
## Quality gate
|
||||
|
||||
- [x] Every functional requirement, user story and acceptance criterion is traceable; original US-16 incompatibilities and implementation acceptance dependencies are explicit. No requirement was silently omitted or changed.
|
||||
- [x] Significant supplied constraints are classified as mandatory, assumed or optional; explicit user clarification and uncertainties are recorded.
|
||||
- [x] Architecture satisfies the clarified design scope; decisions are justified independently of resemblance to existing designs. Original US-16 topology remains an acknowledged incompatibility.
|
||||
- [x] Authoritative specification covers required concerns and agrees with all diagrams.
|
||||
- [x] Domain and conceptual class views cover relevant concepts/relationships without source reverse engineering or unnecessary code-level detail.
|
||||
- [x] Every component has clear responsibilities and data ownership, including operational configuration and transient derived results.
|
||||
- [x] Communication, security/trust, installation/deployment, concurrency, freshness and failure handling are defined.
|
||||
- [x] Energy expectations state mechanisms, assumptions and possible counter-effects; none is described as measured savings.
|
||||
- [x] Seven Draw.io files, 16 pages, are native editable sources; XML/endpoints/geometry/text checks passed. GUI import/round-trip was unavailable and is not claimed.
|
||||
- [x] No application source code was inspected/generated/modified, and all 63 input files remain byte-identical. Repository changes are confined to `ArchitectureProposal/`.
|
||||
|
||||
Verification is of the architecture deliverables. No application tests, deployments, clinical validation or energy measurements were performed. See [validation](validation.md) for the exact checks and remaining limits.
|
||||
Reference in new issue
Block a user