Basket deletion completed
Indicates that Basket successfully deleted the submitted basket during checkout cleanup.
BasketDeletedCompleteIntegrationEvent (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 removed 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 advance the order orchestration saga; it confirms basket deletion only and does not imply order completion.
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 CompleteChannelv1.0.0Basket Delete CompleteKafka topic owned by the contributor team carrying Basket API's successful checkout cleanup confirmation for Finance ord...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; producer deduplicates 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 via Redis-backed 24-hour idempotency keyed by OrderId |
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 was deleted |
basketId | string (uuid) | Yes | Valid UUID | Identifier of the Redis basket removed during checkout cleanup |
totalMoney | number | Yes | Non-negative monetary amount | Total purchase amount associated with the order |
CloudEvents Envelope Headers
| Header | Value / Source | Purpose |
|---|---|---|
messagetype | BookWorm.Contracts.BasketDeletedCompleteIntegrationEvent | 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 | End-to-end correlation across HTTP and Kafka hops |
Delivery Guarantees & Error Handling
| Condition | System Behavior | Recovery / Compensation |
|---|---|---|
| Duplicate Place orderCommandv1.0.0Place orderShared Finance order-placement command consumed by Notification to render and submit a new-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docs within 24 hours | Producer detects the Redis idempotency key for OrderId and re-emits this event without re-deleting | Orchestration handles duplicate external events idempotently |
| Transient broker or consumer error | Retried with cooldown (50ms, 250ms, 1s) and full jitter | Exhausted messages route to the consumer dead-letter queue |
| 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 CompleteChannelv1.0.0Basket Delete CompleteKafka topic owned by the contributor team carrying Basket API's successful checkout cleanup confirmation for Finance ord...Ownercommerce-fulfillment-teamOpen docs — Kafka channel specification.
- Basket deletion failedEventv1.0.0Basket deletion failedIndicates that Basket could not delete the submitted basket during checkout
cleanup.
Ownercommerce-fulfillment-teamSchemaDiagramOpen docs — Companion failure event when Redis deletion returns
false. - 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 completed 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 was deleted.
Identifier of the basket deleted during checkout cleanup.
Total purchase amount associated with the order.