event

Rating Updated

Published when a product's aggregate rating changes as a result of a newly published review.

EventBroker:Kafka

Overview

RatingUpdated is published by 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 whenever a product’s aggregate rating changes. Other domains (such as the storefront and search) can consume it to keep displayed ratings fresh.

Architecture diagram

Event-driven architecture documentation: Acme Inc

JSON Schema

4 properties
productIdstring
required
averageRatingnumber
required
Minimum: 0
Maximum: 5
reviewCountinteger
required
Minimum: 0
updatedAtstring<date-time>
required