Skip to content

perf(cms): cache strapi lookups in redis instead of firestore - #15

Open
david1alvarez wants to merge 1 commit into
mainfrom
ENT-109
Open

david1alvarez wants to merge 1 commit into
mainfrom
ENT-109

Conversation

@david1alvarez

@david1alvarez david1alvarez commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Because

  • Strapi lookups that miss the in-memory cache fall through to Firestore, and Redis answers faster

This pull request

  • Makes StrapiClient's remote cache tier injectable through a StrapiRemoteCacheClient token, with Firestore still the default
  • Provides a Redis-backed client on the metering Redis (metering:cms: prefix) in api, metering-subscriber, metering-sweep and metering-metrics; offline-fallback entries stay up to 7 days next to the usage counters, so the instance's eviction policy matters

Issue that this pull request solves

Closes: ENT-109

Parallel fxa PR: mozilla/fxa#21827

Checklist

  • My commits are GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have manually reviewed all AI generated code.

Because:

- Strapi lookups that miss the in-memory cache fall through to Firestore, and Redis answers faster

This commit:

- Makes StrapiClient's remote cache tier injectable and provides a metering Redis client for it in all four apps

Closes ENT-109

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant