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

Read the architecture guide →

Internal HTTP and A2A gRPC service for collecting, listing, deleting, and summarizing customer feedback for Catalog books.

InternalHTTP APIOpenAPI V1AsyncAPI V1

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

PropertyValue
Bounded Context / DomainReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs
Owner TeamCatalog Experience TeamTeamCatalog Experience TeamStream-Aligned team owning BookWorm's product catalog, customer reviews, and storefront/backoffice discovery experience....Open docs
Runtime StyleREST API, A2A gRPC Server, and Async Kafka Producer/Consumer
Public / Gateway ExposureYes via API Gateway (HTTP) and Internal Only (A2A gRPC)
Authentication & Authorization PolicyMicrosoft 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 PatternCompensating 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).

Note

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.

Warning

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.
NameVersionTypeSummaryChannels
Feedback created
v1.0.0eventIndicates that a customer feedback rating was created for a book. Rating API publishes this event so Catalog can update its denormalized rating summary.
-
Feedback deleted
v1.0.0eventIndicates that a customer feedback rating was deleted for a book. Rating API publishes this event so Catalog can remove it from its denormalized summary.
-

Receives messages (5)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummaryChannels
Create feedback
v1.0.0commandCreates a feedback rating for a Catalog book and returns its generated UUID.
-
Delete feedback
v1.0.0commandDeletes an existing feedback record by its UUID.
-
List feedbacks
v1.0.0queryReturns feedback for a book with pagination, sorting, and validation responses.
-
Summarize feedback
v1.0.0queryReturns a generated feedback summary, classification, rating metrics, evidence, and confidence for a book.
-
Book rating update failed
v1.0.0eventIndicates that Catalog could not apply a feedback-created event because the referenced book was not found.
-

Architecture Visualizations & Specifications

Rating API Context

Loading graph...

Service Interactions

Owned Entities

Attachments