Rating Aggregator
Keeps each product's aggregate star rating up to date as reviews are published, and serves it fast from a cache.
Overview
The Rating Aggregator consumes Review PublishedReview PublishedEventv1.0.0Published when a submitted review passes moderation and becomes visible on the storefront. Ownerreviews-platformSchemaMapView docs and recomputes the affected product’s aggregate rating (average score and review count). It writes the result to the Rating CacheRating CacheContainerv1.0.0Redis cache that serves each product's aggregate star rating with low latency.MapView docs for fast reads and publishes Rating UpdatedRating UpdatedEventv1.0.0Published when a product's aggregate rating changes as a result of a newly published review. Ownerreviews-platformSchemaMapView docs so other domains can stay in sync.
Responsibilities
| Area | Description |
|---|---|
| Aggregation | Recomputes average rating and review count per product. |
| Caching | Writes aggregate ratings to the Rating CacheRating CacheContainerv1.0.0Redis cache that serves each product's aggregate star rating with low latency.MapView docs. |
| Eventing | Publishes Rating UpdatedRating UpdatedEventv1.0.0Published when a product's aggregate rating changes as a result of a newly published review. Ownerreviews-platformSchemaMapView docs on every change. |