Implement US-10 on-demand health insights

This commit is contained in:
Steffen committed 2026-10-02 09:57:06 +02:00
1 parent 4cb6798ec9
commit a5b269cfc3
25 files changed
+482 -4

No files matched your search

@@ -0,0 +1,9 @@
# US-10 Insights architecture correction
The decision in `Docs/Requirements/US_10_Correction` governs US-10.
The Insights Service is an independent process and calculates summaries on demand. Its HTTP observation client retrieves observations through the API Gateway. `InsightsController`, `InsightsApplicationService`, `InsightCalculator`, and the observation client follow `05_class_insights_service.jpg`.
The service has no database, repository, stored summary identifier, or generated-summary persistence. `HealthInsight` is a calculated response object. The `HealthSummary` table shown in `09_er_insights_service.jpg` is an architectural inconsistency and does not apply; this correction supersedes that table. The absence of an Insights database in `02_microservice_architecture.jpg` is intentional.
Each summary request uses current observations, including corrections and deletions. Trend calculation remains under US-11.
+3
View File
@@ -0,0 +1,3 @@
For US-10, the Insights Service calculates summaries on demand from observations retrieved over HTTP through the API Gateway. It does not persist generated summaries and has no database or repository.
The HealthSummary table in Docs/Architecture/09_er_insights_service.jpg is an architectural inconsistency to be corrected, not a deferred implementation requirement. A health summary may exist as a calculated response object, without a persistence identity.
Record this decision and reconcile the affected architecture documentation. Keep trend calculation under US-11.