Rating API
Internal HTTP and A2A gRPC service for collecting, listing, deleting, and summarizing customer feedback for Catalog books.
Service Responsibility & Boundary
Rating API is the system of record 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 for individual customer FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs records on Catalog books. It exposes versioned HTTP endpoints for feedback management and read-time AI summarization, hosts BookWorm’s Agent-to-Agent (A2A) gRPC server for 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, and synchronizes rating deltas with Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs over Kafka. Book metadata and derived rating totals remain owned by Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs.
Service Profile
| Property | Value |
|---|---|
| Bounded Context / Domain | ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs |
| Owner Team | Catalog Experience TeamTeamCatalog Experience TeamStream-Aligned team owning BookWorm's product catalog, customer reviews, and storefront/backoffice discovery experience....Open docs |
| Runtime Style | REST API, A2A gRPC Server, and Async Kafka Producer/Consumer |
| Public / Gateway Exposure | Yes via API Gateway (HTTP) and Internal Only (A2A gRPC) |
| Authentication & Authorization Policy | Microsoft Entra ID JWT and Entra Agent Identity via Identity ProviderSystemv1.0.0Identity ProviderExternal identity infrastructure that authenticates BookWorm users and
provides OAuth-compatible identity verification f...Ownerplatform-engineering-teamDiagramOpen docs; admin policy for deletion, rating_read scope for A2A gRPC |
| Owned Data Store(s) | 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 (Azure Cosmos DB partitioned by book ID), 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 (Redis read cache & idempotency) |
| Key Resilience / Idempotency Pattern | Compensating delete on Catalog rejection, fail-closed PII screening, per-user rate limiting, and dead-letter routing on Rating Dead Letter QueueChannelv1.0.0Rating Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Catalog compensation events that Rating API could not p...Ownerplatform-engineering-teamOpen docs |
Contracts & Data Ownership
Rating API owns the FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs aggregate in 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 and enforces uniqueness per (bookId, firstName, lastName).
Read-time summarization via 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 metadata and analysis prompts from MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs, reads raw reviews in-process under a rate cap, and screens inputs and outputs fail-closed through Presidio APIServicev1.0.0Presidio APIExternal HTTP sidecar API for detecting PII in text and anonymizing detected entities in the Chat and Rating AI agent pi...SubscribesAnalyzeText, AnonymizeText +3APIsOpenAPIOwnerplatform-engineering-teamDiagramOpen docs without mutating stored feedback.
If Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs 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 because a reviewed book does not exist, Rating API executes an idempotent compensating delete on the orphaned feedback record.
Sends messages (2)
Quickly find the message you need by searching for the name, type, or summary.Receives messages (5)
Quickly find the message you need by searching for the name, type, or summary.Architecture Visualizations & Specifications
Rating API Context
Loading graph...
Service Interactions
Owned Entities
Attached Resources & Related Docs
Attachments
documentation (1)
guides (1)
- API and contracts indexCustom DocAPI and contracts indexConsolidated index of BookWorm HTTP v1, gRPC, AG-UI, MCP, A2A, and Kafka/Wolverine contracts grouped by service with aut...Ownerplatform-engineering-teamOpen doc — Consolidated service, HTTP, gRPC, and Kafka directory.
- 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 — AI review summarization agent contract.
- 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 — Azure Cosmos DB persistence reference.
- 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 — Redis caching and idempotency reference.
- Rating Summarizer WorkflowDiagramv1.0.0Rating Summarizer WorkflowBounded parallel review summarization with confidence-driven refinement and deterministic rating classification in Ratin...Ownercatalog-experience-teamOpen diagram — Read-time feedback summarization flow.