Feedback deleted
Indicates that a customer feedback rating was deleted for a book. Rating API publishes this event so Catalog can remove it from its denormalized summary.
FeedbackDeletedIntegrationEvent (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 deleted an existing customer FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs document from 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 subtract the removed score from 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 Deleted ChannelChannelv1.0.0Feedback Deleted ChannelKafka topic owned by the contributor team carrying Rating API feedback-deleted 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 decremented |
rating | integer | Yes | 0-5 | Rating score removed from the book’s denormalized rating summary |
feedbackId | string (uuid) | Yes | Valid UUID | Identifier of the deleted feedback record |
CloudEvents Envelope Headers
| Header | Value / Source | Purpose |
|---|---|---|
messagetype | BookWorm.Contracts.FeedbackDeletedIntegrationEvent | Explicit message identity for cross-service deserialization |
source | urn:bookworm:bookworm-rating | Identifies the producing service |
requestid | Propagated from DELETE /rating/api/v1/feedbacks/{id} | Correlates feedback deletion 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-subtracting 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 returns without modifying state or emitting a compensating event | No action required; no local rating summary exists to adjust |
| 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 Deleted ChannelChannelv1.0.0Feedback Deleted ChannelKafka topic owned by the contributor team carrying Rating API feedback-deleted 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.
- 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 — Companion event for adding a new rating.
- BookEntityv1.0.0BookCanonical sellable title in the product catalog, encapsulating descriptive metadata, pricing, stock availability, taxono...Ownercatalog-experience-teamOpen docs — Catalog entity storing the denormalized rating summary.
Feedback deleted 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 removed from the book.
05Identifier of the deleted feedback record.