Skip to content

perf(observability): cache the complete-batch endpoint tail #274

Description

@vishr

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions