Feedback created
Indicates that a customer feedback rating was created for a book. Rating API publishes this event so Catalog can update its denormalized rating summary.
FeedbackCreatedIntegrationEvent (v1.0.0) signals that 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 persisted a new customer FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs document in Azure Cosmos DB. 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 consumes this event to increment the target book’s denormalized rating summary in PostgreSQL.
Overview
| Property | Value |
|---|---|
| Bounded Context | Reviews |
| Producer | 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 |
| Consumer(s) | 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 |
| Protocol / Format | Kafka + CloudEvents JSON (camelCase payload) |
| Channel / Topic | Feedback Created ChannelChannelv1.0.0Feedback Created ChannelKafka topic owned by the contributor team carrying Rating API feedback-created events consumed by Catalog API to update ...Ownercatalog-experience-teamOpen docs |
| Dead-Letter Channel | Catalog Dead Letter QueueChannelv1.0.0Catalog Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Rating feedback events that Catalog API could not proce...Ownerplatform-engineering-teamOpen docs |
| Partition Key | BookId |
| Delivery / Idempotency Guarantee | Published via transactional outbox; consumed with Redis-backed 24-hour idempotency keyed by id |
Payload Fields & Envelope
Event Payload
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
id | string (uuid) | Yes | UUIDv7 | Unique event identifier used 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 as the Redis idempotency key |
creationDate | string (date-time) | Yes | ISO 8601 UTC timestamp | UTC timestamp when the event was created |
bookId | string (uuid) | Yes | Valid UUID; Kafka partition key | Identifier of the book whose rating summary must be updated |
rating | integer | Yes | 0-5 | Rating score to add to the book’s denormalized rating summary |
feedbackId | string (uuid) | Yes | Valid UUID | Identifier of the newly created feedback record, used for compensation if the book is missing |
CloudEvents Envelope Headers
| Header | Value / Source | Purpose |
|---|---|---|
messagetype | BookWorm.Contracts.FeedbackCreatedIntegrationEvent | Explicit message identity for cross-service deserialization |
source | urn:bookworm:bookworm-rating | Identifies the producing service |
requestid | Propagated from POST /rating/api/v1/feedbacks | Correlates review creation with catalog projection updates |
Delivery Guarantees & Error Handling
| Condition | System Behavior | Recovery / Compensation |
|---|---|---|
| Duplicate delivery within 24 hours | Consumer skips reprocessing via Redis-backed 24-hour idempotency keyed by id | Prevents double-counting a rating on retries |
| Target book not found in 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 | Consumer 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 with feedbackId | 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 reverts and deletes the orphaned feedback record |
| Transient database or concurrency error | Retried with cooldown (50ms, 250ms, 1s) and full jitter | Exhausted messages route to Catalog Dead Letter QueueChannelv1.0.0Catalog Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Rating feedback events that Catalog API could not proce...Ownerplatform-engineering-teamOpen docs |
| Deserialization failure | Routed directly to Catalog Dead Letter QueueChannelv1.0.0Catalog Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Rating feedback events that Catalog API could not proce...Ownerplatform-engineering-teamOpen docs | Inspect dead-letter payload against contract schema |
Related Documentation
- 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 — Producer service owning feedback records.
- 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 — Consumer service maintaining denormalized book ratings.
- Feedback Created ChannelChannelv1.0.0Feedback Created ChannelKafka topic owned by the contributor team carrying Rating API feedback-created events consumed by Catalog API to update ...Ownercatalog-experience-teamOpen docs — Kafka channel specification.
- Catalog Dead Letter QueueChannelv1.0.0Catalog Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Rating feedback events that Catalog API could not proce...Ownerplatform-engineering-teamOpen docs — Dead-letter channel for failed Catalog consumers.
- 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 — Compensating event emitted when the referenced book does not exist.
- 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 — Companion event for removing a deleted rating.
- FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs — Feedback document schema.
Feedback created schema
not allowedUnique event identifier (UUIDv7) inherited from IntegrationEvent.
ISO 8601 UTC timestamp when the event was created.
Identifier of the book whose rating summary changes.
Rating value added to the book.
05Identifier of the feedback record.