Feedback
Represents an individual customer's rating and optional written review for a Catalog book.
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
| 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 |
| Owning Service | 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 |
| DDD Role | Aggregate Root |
| Identifier Strategy | UUIDv7 generated at creation |
| Persistence Store | Reviews document store (feedbacks, partitioned by bookId) |
| Deletion Semantics | Hard-delete (explicit admin removal or automated compensation) |
| Concurrency Control | Optimistic concurrency via document ETag |
| PII / Data Classification | Confidential PII (firstName, lastName) — screened fail-closed before AI summarization |
Attributes & Constraints
| Name | Type | Required | Description | Reference |
|---|---|---|---|---|
| id | UUID | required | Globally unique UUIDv7 identifier generated when the feedback is created. | — |
| bookId | UUID | required | Cross-context identifier of the Catalog Book being reviewed (also the partition key). | bookProperty: id |
| firstName | string | required | Reviewer's first name (non-empty, up to 50 characters). | — |
| lastName | string | required | Reviewer's last name (non-empty, up to 50 characters). | — |
| comment | string | optional | Optional written review text (up to 1,000 characters). | — |
| rating | integer | required | Integer satisfaction score from 0 through 5, inclusive. | — |
| createdAt | datetime | required | UTC timestamp when the feedback was submitted. | — |
| lastModifiedAt | datetime | optional | UTC timestamp of the most recent modification. | — |
| Attribute | Business Rule / Constraint | Sensitivity / Notes |
|---|---|---|
bookId | Required non-empty UUID; serves as both the cross-context book reference and document partition key. | Cross-context ID reference |
firstName, lastName | Required at API boundary; non-empty, max 50 characters each. | PII — redacted in logs and AI prompts |
comment | Optional free text, max 1,000 characters. | Screened for PII during summarization |
rating | Required integer from 0 through 5, inclusive. | Domain invariant |
Domain Invariants & Lifecycle
- Bounded rating score: Ratings outside
0–5(inclusive) are rejected by the domain model. - Asynchronous rating projection: Creating or deleting feedback emits integration events so 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 can update BookEntityv1.0.0BookCanonical sellable title in the product catalog, encapsulating descriptive metadata, pricing, stock availability, taxono...Ownercatalog-experience-teamOpen docs
averageRatingandtotalReviewseventually. - Compensating deletion: 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 rejects a rating delta because the target book does not exist or was soft-deleted, 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 performs an idempotent compensating delete on the orphaned feedback.
- Read-only AI summarization: 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 reads feedback for a book and screens inputs/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 persisted records.
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
| Category | Resource | Role / Interaction |
|---|---|---|
| Cross-Context References | BookEntityv1.0.0BookCanonical sellable title in the product catalog, encapsulating descriptive metadata, pricing, stock availability, taxono...Ownercatalog-experience-teamOpen docs | Referenced strictly by bookId across service boundaries |
| Mutating Commands | Create 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 docs | Submit a new review or remove an existing review |
| Read Queries | List 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 docs | List book reviews or generate a privacy-screened AI summary |
| Events | 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, 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 docs | Propagate rating deltas to Catalog and handle compensation |