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

Read the architecture guide →

Authoritative Azure Cosmos DB system of record owned by the Reviews bounded context for customer feedback documents partitioned by book ID.

DatabasecosmosdbResidency: eastasiaRetention: indefiniteAccess Mode: readWriteDatabase

Purpose & Ownership Boundary

Rating Database (ratingdb) is the authoritative Azure Cosmos DB system of record owned exclusively by 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 in the Reviews bounded context. Cosmos DB was chosen for low-latency, single-partition document reads keyed by /bookId when listing book reviews or running AI summarization, alongside native Wolverine Cosmos DB message persistence.

Data Store Profile

PropertyValue
Bounded Context / OwnerReviews — Catalog Experience TeamTeamCatalog Experience TeamStream-Aligned team owning BookWorm's product catalog, customer reviews, and storefront/backoffice discovery experience....Open docs
Engine / TechnologyAzure Cosmos DB (NoSQL API; Cosmos DB Emulator locally)
Store TypeDatabase
Primary Writer(s)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
Primary Reader(s)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, 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 (governed read-only tool)
Authoritative / Source of TruthYes
Data ClassificationInternal (reviewer firstName and lastName treated as PII in command logging)
Retention / TTL PolicyIndefinite

Logical Data Layout & Key Patterns

ContainerOwned EntityPartition / Primary KeyPurpose & Concurrency
feedbacksFeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docsPartition key: /bookId (uuid); Document key: id (uuid)Stores bookId, firstName (max 50), lastName (max 50), optional comment (max 1,000), rating (0–5), createdAt, lastModifiedAt; optimistic concurrency via _etag.
Wolverine persistence—Envelope IDDurable integration message state in ratingdb for 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.

Consistency, Isolation & Security Guardrails

Warning

Database-per-Service Isolation: Only 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 may write to ratingdb, and 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 is restricted to governed read-only queries. Never run PostgreSQL DDL scripts against Rating in live environments (the attached schema.sql is a legacy/reference relational DDL only; the active store is Azure Cosmos DB).

Operational & Resilience Notes

Architecture Visualizations & Schema

Loading graph...