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

Read the architecture guide →

Basket deletion completed

Indicates that Basket successfully deleted the submitted basket during checkout cleanup.

Order Lifecycle

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

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 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 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; 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

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 was deleted
basketIdstring (uuid)YesValid UUIDIdentifier of the Redis basket removed during checkout cleanup
totalMoneynumberYesNon-negative monetary amountTotal purchase amount associated with the order

CloudEvents Envelope Headers

HeaderValue / SourcePurpose
messagetypeBookWorm.Contracts.BasketDeletedCompleteIntegrationEventExplicit 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 docsEnd-to-end correlation across HTTP and Kafka hops

Delivery Guarantees & Error Handling

ConditionSystem BehaviorRecovery / 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 hoursProducer detects the Redis idempotency key for OrderId and re-emits this event without re-deletingOrchestration handles duplicate external events idempotently
Transient broker or consumer errorRetried with cooldown (50ms, 250ms, 1s) and full jitterExhausted messages route to the consumer dead-letter queue
Deserialization failureRouted immediately to the dead-letter queue without retriesInspect dead-letter payload against contract schema

Basket deletion completed schema

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

basketIdstring<uuid>
required

Identifier of the basket deleted during checkout cleanup.

totalMoneynumber<double>
required

Total purchase amount associated with the order.