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

Read the architecture guide →

Failed Basket Cleanup Command Channel

Kafka topic owned by the commerce-fulfillment-team carrying Finance's failed basket-cleanup compensation command consumed by Order API.

KafkaCompensation

Purpose & Scope

This compensation topic transports failed basket-cleanup commands 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 when 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 reports a cleanup failure or the checkout saga must compensate for a timeout. 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 consumes this command to soft-delete the order record without changing its business status. This channel is distinct from Basket’s upstream failure event 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.

Channel Specification

PropertyValue
Bounded Context / OwnerOrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs / Commerce Fulfillment TeamTeamCommerce Fulfillment TeamStream-Aligned team owning customer shopping baskets, checkout coordination, order lifecycle, and financial saga orchest...Open docs
Channel TypeTopic
Address Patternbookworm.{env}.finance.delete-basket-failed
Parametersenv (development, staging, production; default: development)
Protocol & Envelope FormatKafka + CloudEvents JSON (application/json)
Partition Key & Ordering GuaranteeKeyed by orderId; preserves per-order command ordering within a partition
Delivery SemanticsAt-least-once
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

Messages & Participants

MessageTypeProducerConsumer(s)Consumer Group
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 docsCommandOrder 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 docsOrder 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 docsOrdering service consumer

Ordering, Retries & Failure Handling

  • Partition-key ordering: Keying by orderId serializes compensation commands for a given order within its partition.
  • Transient retries: 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 applies bounded retries with backoff for transient database or service faults.
  • Immediate DLQ routing: Malformed payloads, deserialization errors, or exhausted retries 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.
  • Consumer idempotency: If the order record is already absent, processing is a safe no-op; operators must verify order state before replaying so an active order is not unintentionally soft-deleted.

Channel Details & Visualization

Channel information

Address: bookworm.{env}.finance.delete-basket-failed
Protocol:
  • kafka
Type: Topic

ParameterDescriptionOptionsDefault
envBookWorm deployment environment.development, staging, productiondevelopment