perf(web): share service health snapshots #47

Merged
vince merged 1 commit from codex/dashboard-service-snapshot into main 2026-06-20 14:19:37 +02:00
Owner

Summary

Adds a shared service-health snapshot for aggregate dashboard tile hydration.

Why

The runtime health summary and system status aggregate both need resolved service health. Without a shared snapshot, those aggregate tile requests can duplicate every service health check.

Changes

  • Add a 30-second service health snapshot cache for aggregate tile resolution.
  • Reuse the snapshot for runtime-health-summary and system-status.
  • Key snapshots by dashboard service datasource shape plus datasource resolution context.
  • Evict failed snapshot promises so failures do not poison later aggregate refreshes.
  • Add tests for concurrent aggregate sharing and isolation across different fetch contexts.

Testing

  • bun run check
  • bun run test
  • Independent review: no blocking findings after context-aware snapshot key fix.

Notes

  • Individual service tile hydration remains unchanged.
  • packages/ui is untouched.
## Summary Adds a shared service-health snapshot for aggregate dashboard tile hydration. ## Why The runtime health summary and system status aggregate both need resolved service health. Without a shared snapshot, those aggregate tile requests can duplicate every service health check. ## Changes - Add a 30-second service health snapshot cache for aggregate tile resolution. - Reuse the snapshot for `runtime-health-summary` and `system-status`. - Key snapshots by dashboard service datasource shape plus datasource resolution context. - Evict failed snapshot promises so failures do not poison later aggregate refreshes. - Add tests for concurrent aggregate sharing and isolation across different fetch contexts. ## Testing - bun run check - bun run test - Independent review: no blocking findings after context-aware snapshot key fix. ## Notes - Individual service tile hydration remains unchanged. - packages/ui is untouched.
vince added 1 commit 2026-06-20 14:19:31 +02:00
vince merged commit 243d71686d into main 2026-06-20 14:19:37 +02:00
Sign in to join this conversation.
No description provided.