container

Rating Cache

Redis cache that serves each product's aggregate star rating with low latency.

Cacheredis@7Residency: eu-west-1Retention: transientAccess Mode: readWrite

What is this?

The Rating Cache holds the aggregate rating (average score and review count) for each product. It is a derived read model — never a source of truth — so it can be rebuilt at any time by replaying published reviews.

What does it store?

  • Aggregate rating — one entry per product: average rating, review count and last-updated timestamp.

Access patterns

  • The Rating AggregatorRating AggregatorServicev1.0.0Keeps each product's aggregate star rating up to date as reviews are published, and serves it fast from a cache. Publishesrating-updatedSubscribesreview-publishedOwnerreviews-platformMapRepoView docs writes the aggregate rating whenever a review is published.
  • The Review APIReview APIServicev1.0.0The public-facing API for product reviews. Accepts review submissions, serves published reviews, and is the entry point ...Publishesreview-submitted, review-flagged +1Subscribessubmit-review, flag-review +2Ownerreviews-platformMapRepoView docs reads it to serve Get Product ReviewsGet Product ReviewsQueryv1.0.0Query to fetch the published reviews and aggregate rating for a product. Ownerreviews-platformSchemaMapView docs.