Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Internal Reviews system that owns customer feedback, publishes rating changes to Catalog, and provides read-time feedback summaries for books.

Internal

System Purpose & Boundary

The Rating System owns individual customer FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs records, moderation, and read-time review summarization within the ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs domain. It serves Customers submitting ratings and requesting AI-assisted book summaries, and Administrators moderating or deleting feedback. Authoritative book metadata and derived catalog rating totals remain owned by Product Catalog SystemSystemv1.0.0Product Catalog SystemInternal BookWorm system that owns catalog management, product discovery, and catalog search index ingestion within the ...Ownercatalog-experience-teamDiagramOpen docs and are explicitly out of scope.

Note

Rating System synchronizes rating deltas to Product Catalog SystemSystemv1.0.0Product Catalog SystemInternal BookWorm system that owns catalog management, product discovery, and catalog search index ingestion within the ...Ownercatalog-experience-teamDiagramOpen docs over Kafka. If a customer submits feedback for a book that does not exist in Catalog, Catalog emits Book rating update failedEventv1.0.0Book rating update failedIndicates that Catalog could not apply a feedback-created event because the referenced book was not found. Ownercatalog-experience-teamSchemaDiagramOpen docs and Rating compensates by idempotently deleting the orphaned feedback.

Contained Capabilities

Service / AgentRole in SystemPrimary Data StoreInteraction Style (Sync / Async)
Rating APIServicev1.0.0Rating APIInternal HTTP and A2A gRPC service for collecting, listing, deleting, and summarizing customer feedback for Catalog book...PublishesFeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEventSubscribesCreateFeedback, DeleteFeedback +3APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docsExposes versioned HTTP endpoints for feedback CRUD and summarization, hosts A2A gRPC, and publishes rating eventsRating DatabaseContainerv1.0.0Rating DatabaseAuthoritative Azure Cosmos DB system of record owned by the Reviews bounded context for customer feedback documents part...Ownercatalog-experience-teamDiagramOpen docs, Rating CacheContainerv1.0.0Rating CacheNon-authoritative FusionCache and Redis caching layer owned by the Reviews bounded context for AI-generated book feedbac...Ownercatalog-experience-teamDiagramOpen docsSync (HTTP/A2A gRPC) & Async (Kafka)
Rating AgentAgentv1.0.0Rating AgentRead-only review intelligence specialist that summarizes customer feedback over A2A gRPC and map-reduce workflows while ...PublishesAnalyzeText, AnonymizeTextOwnercatalog-experience-teamDiagramRepositoryOpen docsGenerates read-time review classifications and grounded summaries using catalog context and raw feedbackNone (Read-only)Sync (A2A gRPC / In-process)

External Interactions & Trust Boundaries

System Visualizations

System Context

Reviews Context

Component Topology

Architecture Decisions

Architecture Decision Records (9)

Decisions that apply to this Rating System. Search, filter by status, or sort by clicking a column.
Summary
ADR-BW-007: Distinguish authoritative state from derived viewsProposedNov 7, 2026Treat search and rating projections as derived information with explicit consistency limits rather than alternative sources of truth.
ADR-BW-014: Compose shared governance on each enabled AI pathProposedNov 7, 2026Reuse privacy, guardrail, and policy mechanisms across Chat and Rating while verifying registration and permissions on each model and tool path.
ADR-001: Expose domain data through a read-only MCP adapterAcceptedNov 4, 2026The MCP Server exposes read-only capabilities while Catalog and Reviews remain authoritative for their data.
ADR-002: Use stateless Streamable HTTP for MCP transportAcceptedNov 4, 2026MCP clients communicate with the server over stateless Streamable HTTP, keeping protocol transport independent of client session persistence.
ADR-004: Use domain APIs as MCP data sourcesAcceptedNov 4, 2026MCP data access goes through Catalog and Rating service APIs instead of reading their databases directly.
ADR-001: Use PostgreSQL as the feedback system of recordAcceptedOct 25, 2026Rating Database (PostgreSQL) is the authoritative store for individual customer feedback; no other domain may read or write feedback records directly.
ADR-002: Publish feedback events for Catalog's rating projectionAcceptedOct 25, 2026Rating publishes committed feedback-created and feedback-deleted events so Catalog can maintain its own eventually consistent rating summary.
ADR-003: Compensate feedback rejected by CatalogAcceptedOct 25, 2026Rating removes feedback when Catalog reports that a feedback-created event referenced a missing book, and treats repeated compensation signals as idempotent no-ops.
ADR-004: Keep AI feedback summarization read-only and governedAcceptedOct 25, 2026Rating generates feedback insights at read time with allow-listed read tools, PII redaction, and rate limits, without persisting or changing feedback or Catalog projections.
  • Customer Feedback Publication and ProjectionFlowv1.0.0Customer Feedback Publication and ProjectionRating API persists customer feedback in Cosmos DB and publishes an integration event; Catalog API updates the derived b...Ownercatalog-experience-teamView flowOpen docs — End-to-end feedback creation, projection, and compensation flow.
  • domains/bookworm/subdomains/reviews/engineering/feedback-contracts-and-integration — Feedback contracts and integration boundaries.
  • domains/bookworm/subdomains/reviews/guides/feedback-lifecycle — Feedback lifecycle guide.
  • domains/bookworm/subdomains/reviews/runbooks/catalog-rating-projection-failure — Runbook for Catalog rating projection failures.