This is a demo catalog. Create one for your own architecture with a single prompt.

Get started →

Review submission

How product reviews are submitted, moderated, published and aggregated into ratings.

Flow

Review SubmissionFlowv1.0.0Review SubmissionHow a customer's product review travels from submission, through moderation, to being published and folded into the prod...Ownerreviews-platformView flowOpen docs captures the lifecycle of customer product feedback.

Flow map

Flow stages

  1. A customer submits a review through Review APIServicev1.0.0Review APIThe 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-platformDiagramRepositoryOpen docs using Submit ReviewCommandv1.0.0Submit ReviewCommand issued by a customer to submit a review and rating for a product. Ownerreviews-platformSchemaDiagramOpen docs.
  2. Review APIServicev1.0.0Review APIThe 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-platformDiagramRepositoryOpen docs stores the review in Review DatabaseContainerv1.0.0Review DatabasePostgreSQL database that is the system of record for reviews and their moderation state.Ownerreviews-platformDiagramOpen docs and publishes Review SubmittedEventv1.0.0Review SubmittedPublished when a customer submits a review. The review is stored but not yet visible — it awaits moderation. Ownerreviews-platformSchemaDiagramOpen docs.
  3. Review Moderation WorkerServicev1.0.0Review Moderation WorkerAsynchronous worker that screens submitted reviews for spam, abuse and policy violations, then publishes or rejects them...Publishesreview-published, review-rejectedSubscribesreview-submitted, review-flaggedOwnerreviews-platformDiagramRepositoryOpen docs evaluates the review.
  4. The worker publishes Review PublishedEventv1.0.0Review PublishedPublished when a submitted review passes moderation and becomes visible on the storefront. Ownerreviews-platformSchemaDiagramOpen docs or Review RejectedEventv1.0.0Review RejectedPublished when a submitted review fails moderation (spam, abuse or policy violation) and will not be shown. Ownerreviews-platformSchemaDiagramOpen docs.
  5. Rating AggregatorServicev1.0.0Rating AggregatorKeeps each product's aggregate star rating up to date as reviews are published, and serves it fast from a cache. Publishesrating-updatedSubscribesreview-publishedOwnerreviews-platformDiagramRepositoryOpen docs consumes published reviews and updates Rating CacheContainerv1.0.0Rating CacheRedis cache that serves each product's aggregate star rating with low latency.Ownerreviews-platformDiagramOpen docs.
  6. Review APIServicev1.0.0Review APIThe 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-platformDiagramRepositoryOpen docs serves Get Product ReviewsQueryv1.0.0Get Product ReviewsQuery to fetch the published reviews and aggregate rating for a product. Ownerreviews-platformSchemaDiagramOpen docs for storefront reads.

Moderation boundary

Moderation is asynchronous so submission remains responsive and moderation rules can evolve independently.

Rating boundary

Ratings are a read model. Rating CacheContainerv1.0.0Rating CacheRedis cache that serves each product's aggregate star rating with low latency.Ownerreviews-platformDiagramOpen docs is optimised for product pages, while Review DatabaseContainerv1.0.0Review DatabasePostgreSQL database that is the system of record for reviews and their moderation state.Ownerreviews-platformDiagramOpen docs remains the durable review store.

Follow-up interactions

After publication, customers can use Vote Review HelpfulCommandv1.0.0Vote Review HelpfulCommand issued by a customer to mark a published review as helpful (or remove their vote). Ownerreviews-platformSchemaDiagramOpen docs or Flag ReviewCommandv1.0.0Flag ReviewCommand issued by a customer or moderator to flag a published review for re-moderation. Ownerreviews-platformSchemaDiagramOpen docs. These interactions publish Review Helpful VotedEventv1.0.0Review Helpful VotedPublished when a review's helpful count changes as a result of a customer vote. Ownerreviews-platformSchemaDiagramOpen docs and Review FlaggedEventv1.0.0Review FlaggedPublished when a published review is flagged and needs to be screened again. Ownerreviews-platformSchemaDiagramOpen docs.