Files
HealthAppRepositoryB/Docs/Architecture/us10-insights-correction.md
T

1.5 KiB

US-10 Insights architecture correction

This document is the baseline architecture decision for US-10 and US-11. It incorporates the former Docs/Requirements/US_10_Correction; that duplicate requirement file has been retired. Functional requirements are in ../Requirements/us10-calculated-insight.md and ../Requirements/us11-health-trend.md.

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.drawio.

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; 09_er_insights_service.drawio and this correction supersede 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.

Trend assessments also use current observations and are calculated on demand without storing generated assessments. This is a baseline design constraint, not an invariant persistence constraint on all architectural variants. Any experimental variant must retain the required freshness and access behaviour.