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

Read the architecture guide →

Basket deletion failed

Indicates that Basket could not delete the submitted basket during checkout cleanup.

Order Lifecycle

BasketDeletedFailedIntegrationEvent (v1.0.0) signals that Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs could not delete a submitted customer basket during post-checkout cleanup. Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs consumes this event to trigger compensating failure handling instead of stalling the checkout orchestration.

Overview

PropertyValue
Bounded ContextShopping
ProducerBasket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs
Consumer(s)Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs
Protocol / FormatKafka + CloudEvents JSON (camelCase payload)
Channel / TopicBasket Delete FailedChannelv1.0.0Basket Delete FailedKafka topic owned by the contributor team carrying Basket API's explicit checkout cleanup failure outcome for Finance co...Ownercommerce-fulfillment-teamOpen docs
Dead-Letter ChannelNone on consumer (Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs uses Azure Functions Kafka trigger retries and Durable Task Hub diagnostics; Basket Dead Letter QueueChannelv1.0.0Basket Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Basket API messages after retry exhaustion or deseriali...Ownerplatform-engineering-teamOpen docs is for Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs inbound failures)
Partition KeyOrderId
Delivery / Idempotency GuaranteeAt-least-once delivery; emitted when Redis deletion returns false while handling Place orderCommandv1.0.0Place orderShared Finance order-placement command consumed by Notification to render and submit a new-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docs

Payload Fields & Envelope

Event Payload

NameTypeRequiredConstraintsDescription
idstring (uuid)YesUUIDv7Unique identifier for this integration event instance
creationDatestring (date-time)YesISO 8601 UTC timestampUTC timestamp when the event was created
orderIdstring (uuid)YesValid UUID; Kafka partition keyIdentifier of the order whose submitted basket could not be deleted
basketIdstring (uuid)YesValid UUIDIdentifier of the basket that could not be removed
emailstring | nullNoEmail format when non-null; nullableCustomer email used by downstream recovery notifications when present
totalMoneynumberYesNon-negative monetary amountTotal purchase amount associated with the order
Note

Consumers must handle email when it is null or omitted and must never interpret BasketDeletedFailedIntegrationEvent as a successful cleanup milestone.

CloudEvents Envelope Headers

HeaderValue / SourcePurpose
messagetypeBookWorm.Contracts.BasketDeletedFailedIntegrationEventExplicit message identity for cross-service deserialization
sourceurn:bookworm:bookworm-basketIdentifies the producing service
requestidPropagated from incoming Place orderCommandv1.0.0Place orderShared Finance order-placement command consumed by Notification to render and submit a new-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docsCorrelates checkout and recovery logs across services

Delivery Guarantees & Error Handling

ConditionSystem BehaviorRecovery / Compensation
Redis deletion returns false (key missing or not deleted)Emits BasketDeletedFailedIntegrationEventOrder OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs dispatches Handle basket deletion failedCommandv1.0.0Handle basket deletion failedReports Finance's failed basket-cleanup outcome so Order API can soft-delete the affected Order. Ownercommerce-fulfillment-teamSchemaDiagramOpen docs to Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs
Unhandled exception during Redis deletionReleases the OrderId idempotency lock and retries (50ms, 250ms, 1s, full jitter)Exhausted messages route to Basket Dead Letter QueueChannelv1.0.0Basket Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Basket API messages after retry exhaustion or deseriali...Ownerplatform-engineering-teamOpen docs
Deserialization failureRouted immediately to the dead-letter queue without retriesInspect dead-letter payload against contract schema

Basket deletion failed schema

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

Unique identifier assigned by the integration-event building block.

creationDatestring<date-time>
required

UTC timestamp when the integration event was created.

orderIdstring<uuid>
required

Identifier of the order whose submitted basket could not be deleted.

basketIdstring<uuid>
required

Identifier of the basket that could not be deleted.

emailstring | null<email>

Customer email used by downstream recovery or notification workflows.

totalMoneynumber<double>
required

Total purchase amount associated with the order.