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

Read the architecture guide →

Handle basket deletion failed

Reports Finance's failed basket-cleanup outcome so Order API can soft-delete the affected Order.

Order Lifecycle

DeleteBasketFailedCommand (v1.0.0) is an asynchronous Kafka integration command published by 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 instructing 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 to soft-delete an order whose post-checkout basket cleanup failed or whose orchestration rolled back. 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 marks the order deleted without transitioning its business status to Cancelled.

Overview

PropertyValue
Bounded ContextOrdering
ProducerOrder 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(s)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
Protocol / FormatKafka + CloudEvents JSON (camelCase payload)
Channel / TopicFailed Basket Cleanup Command ChannelChannelv1.0.0Failed Basket Cleanup Command ChannelKafka topic owned by the commerce-fulfillment-team carrying Finance's failed basket-cleanup compensation command consume...Ownercommerce-fulfillment-teamOpen docs
Dead-Letter ChannelOrdering Dead Letter QueueChannelv1.0.0Ordering Dead Letter QueueKafka dead-letter topic owned by the platform-engineering-team that captures basket-cleanup outcome commands that Order ...Ownerplatform-engineering-teamOpen docs
Partition KeyOrderId
Delivery / Idempotency GuaranteeAt-least-once delivery; consumed with Redis-backed 24-hour idempotency keyed by id
Note

DeleteBasketFailedCommand is distinct from Basket deletion failedEventv1.0.0Basket deletion failedIndicates that Basket could not delete the submitted basket during checkout cleanup. Ownercommerce-fulfillment-teamSchemaDiagramOpen docs. 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 publishes BasketDeletedFailedIntegrationEvent to 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, which then publishes DeleteBasketFailedCommand 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.

Payload Fields & Envelope

Command Payload

NameTypeRequiredConstraintsDescription
idstring (uuid)YesUUIDv7Unique message identifier used as the Redis idempotency key
creationDatestring (date-time)YesISO 8601 UTC timestampUTC timestamp when the command was created
basketIdstring (uuid)YesValid UUIDIdentifier of the basket whose cleanup failed
emailstring | nullYesNullable email stringCustomer email address when available (null when unavailable)
orderIdstring (uuid)YesValid UUID; Kafka partition keyIdentifier of the affected order to soft-delete
totalMoneynumberYesNon-negative monetary amountTotal purchase amount associated with the order

Delivery Guarantees & Error Handling

ConditionSystem BehaviorRecovery / Compensation
Duplicate delivery within 24 hoursConsumer skips reprocessing via Redis-backed 24-hour idempotency keyed by idSafe at-least-once delivery
Order not found or already soft-deletedConsumer exits cleanly without errorNaturally idempotent no-op
Transient database or broker failureRetried with cooldown (50ms, 250ms, 1s with full jitter)Exhausted messages route to Ordering Dead Letter QueueChannelv1.0.0Ordering Dead Letter QueueKafka dead-letter topic owned by the platform-engineering-team that captures basket-cleanup outcome commands that Order ...Ownerplatform-engineering-teamOpen docs

Handle basket deletion failed schema

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

Unique identifier assigned to the integration message.

creationDatestring<date-time>
required

UTC timestamp when the integration message was created.

basketIdstring<uuid>
required

Identifier of the basket whose cleanup failed.

emailstring | null<email>
required

Customer email, when available.

orderIdstring<uuid>
required

Identifier of the affected Order.

totalMoneynumber<double>
required

Total purchase amount associated with the Order.