Basket deletion failed
Indicates that Basket could not delete the submitted basket during checkout cleanup.
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
| Property | Value |
|---|---|
| Bounded Context | Shopping |
| Producer | 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 |
| 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 / Format | Kafka + CloudEvents JSON (camelCase payload) |
| Channel / Topic | Basket 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 Channel | None 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 Key | OrderId |
| Delivery / Idempotency Guarantee | At-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
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
id | string (uuid) | Yes | UUIDv7 | Unique identifier for this integration event instance |
creationDate | string (date-time) | Yes | ISO 8601 UTC timestamp | UTC timestamp when the event was created |
orderId | string (uuid) | Yes | Valid UUID; Kafka partition key | Identifier of the order whose submitted basket could not be deleted |
basketId | string (uuid) | Yes | Valid UUID | Identifier of the basket that could not be removed |
email | string | null | No | Email format when non-null; nullable | Customer email used by downstream recovery notifications when present |
totalMoney | number | Yes | Non-negative monetary amount | Total purchase amount associated with the order |
Consumers must handle email when it is null or omitted and must never interpret BasketDeletedFailedIntegrationEvent as a successful cleanup milestone.
CloudEvents Envelope Headers
| Header | Value / Source | Purpose |
|---|---|---|
messagetype | BookWorm.Contracts.BasketDeletedFailedIntegrationEvent | Explicit message identity for cross-service deserialization |
source | urn:bookworm:bookworm-basket | Identifies the producing service |
requestid | Propagated 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 docs | Correlates checkout and recovery logs across services |
Delivery Guarantees & Error Handling
| Condition | System Behavior | Recovery / Compensation |
|---|---|---|
Redis deletion returns false (key missing or not deleted) | Emits BasketDeletedFailedIntegrationEvent | 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 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 deletion | Releases 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 failure | Routed immediately to the dead-letter queue without retries | Inspect dead-letter payload against contract schema |
Related Documentation
- 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 — Producer service contract and Redis storage details.
- 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 — Consumer orchestration service.
- Basket 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 — Kafka channel specification.
- 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 — Dead-letter channel for failed Basket consumers.
- Basket deletion completedEventv1.0.0Basket deletion completedIndicates that Basket successfully deleted the submitted basket during checkout cleanup. Ownercommerce-fulfillment-teamSchemaDiagramOpen docs — Companion success event for checkout basket cleanup.
- BasketEntityv1.0.0BasketCustomer-scoped, mutable pre-order collection of requested books and quantities managed prior to checkout.Ownercommerce-fulfillment-teamOpen docs — Redis basket data model.
Basket deletion failed schema
not allowedUnique identifier assigned by the integration-event building block.
UTC timestamp when the integration event was created.
Identifier of the order whose submitted basket could not be deleted.
Identifier of the basket that could not be deleted.
Customer email used by downstream recovery or notification workflows.
Total purchase amount associated with the order.