Skip to content

Performance: Redis caching layer for hot reads (dashboard, leaderboard, campaign metadata) #796

Description

@joelpeace48-cell

Context

Hot read endpoints recompute on every request. A cache with correct invalidation is needed to scale
reads without hammering the DB/chain.

Scope

  • Cache hot reads in Redis with TTL + event-driven invalidation on writes/indexer updates.
  • Stampede protection (single-flight / lock) on cache miss.
  • Cache hit-rate metrics.

Acceptance criteria

  • Hot endpoints serve from cache with correct invalidation; measurable DB load reduction.

Verification

  • Load test shows high hit rate and that writes invalidate stale entries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: backendBackend API (Node/Express)difficulty: mediumModerate complexityjavascriptPull requests that update javascript codeperformancePerf and scalability

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions