Rating System
Internal Reviews system that owns customer feedback, publishes rating changes to Catalog, and provides read-time feedback summaries for books.
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.
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 / Agent | Role in System | Primary Data Store | Interaction 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 docs | Exposes versioned HTTP endpoints for feedback CRUD and summarization, hosts A2A gRPC, and publishes rating events | Rating 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 docs | Sync (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 docs | Generates read-time review classifications and grounded summaries using catalog context and raw feedback | None (Read-only) | Sync (A2A gRPC / In-process) |
External Interactions & Trust Boundaries
- Human actors via API Gateway: Customers authenticate via Identity ProviderSystemv1.0.0Identity ProviderExternal identity infrastructure that authenticates BookWorm users and
provides OAuth-compatible identity verification f...Ownerplatform-engineering-teamDiagramOpen docs to submit feedback and request summaries; Administrators require the
adminrole to delete feedback. - Catalog event synchronization: Publishes Feedback createdEventv1.0.0Feedback createdIndicates that a customer feedback rating was created for a book. Rating API publishes this event so Catalog can update ...Ownercatalog-experience-teamSchemaDiagramOpen docs and Feedback deletedEventv1.0.0Feedback deletedIndicates that a customer feedback rating was deleted for a book. Rating API publishes this event so Catalog can remove ...Ownercatalog-experience-teamSchemaDiagramOpen docs 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, and consumes 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 for compensation.
- Conversational & tooling integrations: Chat SystemSystemv1.0.0Chat SystemInternal system that hosts BookWorm's conversational workflow and specialist AI agents for customer support and catalog-...Ownerai-capabilities-teamDiagramRepositoryOpen docs invokes 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 docs over authenticated A2A gRPC; 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 docs retrieves book context and analysis prompts from MCP ToolsSystemv1.0.0MCP ToolsInternal stateless MCP server that exposes read-only Catalog tools and reusable AI prompts to BookWorm AI clients. Ownerai-capabilities-teamDiagramRepositoryOpen docs and screens inputs/outputs fail-closed through Data PrivacySystemv1.0.0Data PrivacyExternal Presidio system that detects and anonymizes personally identifiable information in the Reviews feedback-summari...Ownerplatform-engineering-teamDiagramOpen docs.
- Eventual projection consistency: Catalog’s average rating and review count update asynchronously, trading brief projection lag for decoupled availability. - Read-time summarization: Summaries are computed on demand without mutating stored feedback or persisting generated classifications.
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.Related Documentation
- 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.