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

Read the architecture guide →

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.

Reviews

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

PropertyValue
Bounded ContextReviews
ProducerRating 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 / FormatKafka + CloudEvents JSON (camelCase payload)
Channel / TopicFeedback 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 ChannelCatalog 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 KeyBookId
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 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
creationDatestring (date-time)YesISO 8601 UTC timestampUTC timestamp when the event was created
bookIdstring (uuid)YesValid UUID; Kafka partition keyIdentifier of the book whose rating summary must be updated
ratingintegerYes0-5Rating score to add to the book’s denormalized rating summary
feedbackIdstring (uuid)YesValid UUIDIdentifier of the newly created feedback record, used for compensation if the book is missing

CloudEvents Envelope Headers

HeaderValue / SourcePurpose
messagetypeBookWorm.Contracts.FeedbackCreatedIntegrationEventExplicit message identity for cross-service deserialization
sourceurn:bookworm:bookworm-ratingIdentifies the producing service
requestidPropagated from POST /rating/api/v1/feedbacksCorrelates review creation with catalog projection updates

Delivery Guarantees & Error Handling

ConditionSystem BehaviorRecovery / Compensation
Duplicate delivery within 24 hoursConsumer skips reprocessing via Redis-backed 24-hour idempotency keyed by idPrevents 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 docsConsumer 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 feedbackIdRating 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 errorRetried with cooldown (50ms, 250ms, 1s) and full jitterExhausted 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 failureRouted 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 docsInspect dead-letter payload against contract schema

Feedback created schema

5 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.

bookIdstring<uuid>
required

Identifier of the book whose rating summary changes.

ratinginteger
required

Rating value added to the book.

Minimum: 0
Maximum: 5
feedbackIdstring<uuid>
required

Identifier of the feedback record.