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.
Context
Hot read endpoints recompute on every request. A cache with correct invalidation is needed to scale
reads without hammering the DB/chain.
Scope
Acceptance criteria
Verification