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

Read the architecture guide →

Book rating update failed

Indicates that Catalog could not apply a feedback-created event because the referenced book was not found.

Reviews

BookUpdatedRatingFailedIntegrationEvent (v1.0.0) is a compensating event published 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 when it receives 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 for a book that does not exist in the catalog. 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 consumes this event to revert and delete the orphaned feedback record.

Overview

PropertyValue
Bounded ContextCatalog (compensating for Reviews)
ProducerCatalog 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(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
Protocol / FormatKafka + CloudEvents JSON (camelCase payload)
Channel / TopicBook Rating Update Failed ChannelChannelv1.0.0Book Rating Update Failed ChannelKafka compensation topic owned by the contributor team used by Catalog API when a feedback-created event references a mi...Ownercatalog-experience-teamOpen docs
Dead-Letter ChannelRating Dead Letter QueueChannelv1.0.0Rating Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Catalog compensation events that Rating API could not p...Ownerplatform-engineering-teamOpen docs
Partition KeyFeedbackId
Delivery / Idempotency GuaranteePublished via transactional outbox; consumed with Redis-backed 24-hour idempotency keyed by id

Payload Fields & Envelope

Event Payload

NameTypeRequiredConstraintsDescription
idstring (uuid)YesUUIDv7Unique event identifier used 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 as the Redis idempotency key
creationDatestring (date-time)YesISO 8601 UTC timestampUTC timestamp when the event was created
feedbackIdstring (uuid)YesValid UUID; Kafka partition keyIdentifier of the orphaned FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs record to revert and delete

CloudEvents Envelope Headers

HeaderValue / SourcePurpose
messagetypeBookWorm.Contracts.BookUpdatedRatingFailedIntegrationEventExplicit message identity for cross-service deserialization
sourceurn:bookworm:bookworm-catalogIdentifies the producing service
requestidPropagated from incoming 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 docsTraces compensation back to the originating review submission

Delivery Guarantees & Error Handling

ConditionSystem BehaviorRecovery / Compensation
Duplicate delivery within 24 hoursConsumer skips reprocessing via Redis-backed 24-hour idempotency keyed by idSafe at-least-once delivery
Feedback record already deletedConsumer returns without errorNo action required; compensation is naturally idempotent
Transient store or network failureRetried with cooldown (50ms, 250ms, 1s) and full jitterExhausted messages route to Rating Dead Letter QueueChannelv1.0.0Rating Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Catalog compensation events that Rating API could not p...Ownerplatform-engineering-teamOpen docs
Deserialization failureRouted directly to Rating Dead Letter QueueChannelv1.0.0Rating Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Catalog compensation events that Rating API could not p...Ownerplatform-engineering-teamOpen docsInspect dead-letter payload against contract schema

Book rating update failed schema

3 properties
Additional properties: not allowed
idstring<uuid>
required

Unique event identifier (UUIDv7) inherited from IntegrationEvent.

creationDatestring<date-time>
required

ISO 8601 UTC timestamp when the event was created.

feedbackIdstring<uuid>
required

Identifier of the feedback that could not be applied.