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

Read the architecture guide →

Feedback

Represents an individual customer's rating and optional written review for a Catalog book.

Aggregate RootAggregate RootContains PII

Domain Role & Boundary

Feedback is the Aggregate Root in the ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs bounded context representing one customer’s numeric rating and optional written review for a book. Owned 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, it serves as the authoritative source for individual customer sentiment and AI-assisted review 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. It explicitly does not own canonical book metadata or the aggregate rating summary displayed on product listings (both owned by CatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...Ownercatalog-experience-teamDiagramOpen docs).

Entity 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
Owning ServiceRating 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
DDD RoleAggregate Root
Identifier StrategyUUIDv7 generated at creation
Persistence StoreReviews document store (feedbacks, partitioned by bookId)
Deletion SemanticsHard-delete (explicit admin removal or automated compensation)
Concurrency ControlOptimistic concurrency via document ETag
PII / Data ClassificationConfidential PII (firstName, lastName) — screened fail-closed before AI summarization

Attributes & Constraints

NameTypeRequiredDescriptionReference
idUUIDrequiredGlobally unique UUIDv7 identifier generated when the feedback is created.—
bookIdUUIDrequiredCross-context identifier of the Catalog Book being reviewed (also the partition key).
bookProperty: id
firstNamestringrequiredReviewer's first name (non-empty, up to 50 characters).—
lastNamestringrequiredReviewer's last name (non-empty, up to 50 characters).—
commentstringoptionalOptional written review text (up to 1,000 characters).—
ratingintegerrequiredInteger satisfaction score from 0 through 5, inclusive.—
createdAtdatetimerequiredUTC timestamp when the feedback was submitted.—
lastModifiedAtdatetimeoptionalUTC timestamp of the most recent modification.—
AttributeBusiness Rule / ConstraintSensitivity / Notes
bookIdRequired non-empty UUID; serves as both the cross-context book reference and document partition key.Cross-context ID reference
firstName, lastNameRequired at API boundary; non-empty, max 50 characters each.PII — redacted in logs and AI prompts
commentOptional free text, max 1,000 characters.Screened for PII during summarization
ratingRequired integer from 0 through 5, inclusive.Domain invariant

Domain Invariants & Lifecycle

Warning

Because Reviews references BookEntityv1.0.0BookCanonical sellable title in the product catalog, encapsulating descriptive metadata, pricing, stock availability, taxono...Ownercatalog-experience-teamOpen docs strictly by bookId without synchronous Catalog validation on write, orphaned feedback is resolved asynchronously via 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. Additionally, reviewer uniqueness per (bookId, firstName, lastName) is enforced at the application/conflict layer rather than via a database unique-key policy.

Relationships & Associated Operations

CategoryResourceRole / Interaction
Cross-Context ReferencesBookEntityv1.0.0BookCanonical sellable title in the product catalog, encapsulating descriptive metadata, pricing, stock availability, taxono...Ownercatalog-experience-teamOpen docsReferenced strictly by bookId across service boundaries
Mutating CommandsCreate feedbackCommandv1.0.0Create feedbackCreates a feedback rating for a Catalog book and returns its generated UUID.Ownercatalog-experience-teamSchemaDiagramOpen docs, Delete feedbackCommandv1.0.0Delete feedbackDeletes an existing feedback record by its UUID.Ownercatalog-experience-teamSchemaDiagramOpen docsSubmit a new review or remove an existing review
Read QueriesList feedbacksQueryv1.0.0List feedbacksReturns feedback for a book with pagination, sorting, and validation responses.Ownercatalog-experience-teamSchemaDiagramOpen docs, Summarize feedbackQueryv1.0.0Summarize feedbackReturns a generated feedback summary, classification, rating metrics, evidence, and confidence for a book.Ownercatalog-experience-teamSchemaDiagramOpen docsList book reviews or generate a privacy-screened AI summary
EventsFeedback 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, 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, 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 docsPropagate rating deltas to Catalog and handle compensation