PR #272 review follow-up for performance.go: #272 (comment)
Stop recomputing the five-minute raw endpoint histogram for every dashboard read. Preserve the existing publication safety lag. Cache complete immutable batch aggregates by minute and combine them with exact partial-minute boundaries and uncached batches; invalidate correctly for compaction, retention, and late arrivals.
Validation: endpoint calls, errors, histogram buckets/quantiles, namespace/service filters, partial minutes, startup, new and late batches, replacement, and cancellation must match authoritative scans. Measure repeated queries at a fixed ingest rate; cached reads must not scan the entire safety-lag region.
Implementation is authorized in PR #272; this issue tracks the fix and its validation.
PR #272 review follow-up for
performance.go: #272 (comment)Stop recomputing the five-minute raw endpoint histogram for every dashboard read. Preserve the existing publication safety lag. Cache complete immutable batch aggregates by minute and combine them with exact partial-minute boundaries and uncached batches; invalidate correctly for compaction, retention, and late arrivals.
Validation: endpoint calls, errors, histogram buckets/quantiles, namespace/service filters, partial minutes, startup, new and late batches, replacement, and cancellation must match authoritative scans. Measure repeated queries at a fixed ingest rate; cached reads must not scan the entire safety-lag region.
Implementation is authorized in PR #272; this issue tracks the fix and its validation.