Review API
The public-facing API for product reviews. Accepts review submissions, serves published reviews, and is the entry point into the Reviews & Ratings domain.
Overview
The Review API is the front door to the Reviews & Ratings domain. It validates incoming Submit ReviewSubmit ReviewCommandv1.0.0Command issued by a customer to submit a review and rating for a product.
Ownerreviews-platformSchemaMapView docs commands, persists reviews to the Review DatabaseReview DatabaseContainerv1.0.0PostgreSQL database that is the system of record for reviews and their moderation state.MapView docs, and publishes Review SubmittedReview SubmittedEventv1.0.0Published when a customer submits a review. The review is stored but not yet visible — it awaits moderation.
Ownerreviews-platformSchemaMapView docs. It also serves Get Product ReviewsGet Product ReviewsQueryv1.0.0Query to fetch the published reviews and aggregate rating for a product.
Ownerreviews-platformSchemaMapView docs, reading published reviews from the Review DatabaseReview DatabaseContainerv1.0.0
PostgreSQL database that is the system of record for reviews and their moderation state.MapView docs and aggregate ratings from the Rating CacheRating CacheContainerv1.0.0Redis cache that serves each product's aggregate star rating with low latency.MapView docs.
Responsibilities
| Area | Description |
|---|---|
| Command handling | Validates and applies Submit ReviewSubmit ReviewCommandv1.0.0Command issued by a customer to submit a review and rating for a product. Ownerreviews-platformSchemaMapView docs. |
| Reads | Serves Get Product ReviewsGet Product ReviewsQueryv1.0.0Query to fetch the published reviews and aggregate rating for a product. Ownerreviews-platformSchemaMapView docs from the review database and rating cache. |
| Eventing | Publishes Review SubmittedReview SubmittedEventv1.0.0Published when a customer submits a review. The review is stored but not yet visible — it awaits moderation. Ownerreviews-platformSchemaMapView docs for moderation. |
| Persistence | Writes to the Review DatabaseReview DatabaseContainerv1.0.0 |