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

Read the architecture guide →

Message-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Durable Task Scheduler and Kafka.

InternalEvent-drivenAsyncAPI V1

Service Responsibility & Boundary

Order Orchestration is an internal durable workflow worker within the OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs domain that coordinates post-checkout basket cleanup retries and order lifecycle email commands over Kafka. It tracks one orchestration instance per Order ID in Azure Durable Task Scheduler, delegating authoritative Order state 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, basket deletion to 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, and email delivery to Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs. It does not process payments or expose HTTP or gRPC endpoints.

Service Profile

PropertyValue
Bounded Context / DomainOrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs
Owner TeamCommerce Fulfillment TeamTeamCommerce Fulfillment TeamStream-Aligned team owning customer shopping baskets, checkout coordination, order lifecycle, and financial saga orchest...Open docs
Runtime StyleDurable Orchestrator & Async Kafka Worker
Public / Gateway ExposureInternal Only (no HTTP or gRPC API)
Authentication & Authorization PolicyInternal worker; Azure Managed Identity RBAC for Durable Task Scheduler
Owned Data Store(s)Azure Durable Task Scheduler (orchestration state and timers, keyed by Order ID)
Key Resilience / Idempotency PatternOrder-ID correlation deduplicating checkout events and bounded 30-minute retry timers (max 3 attempts)

Contracts & Data Ownership

Order Orchestration owns only per-order coordination saga state (Placed, BasketDeletionFailed, Completed, Cancelled).

Note

Despite the Finance system name, this service does not authorize or settle payments. 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 remains the sole authority for Order aggregates and business status; timeout exhaustion in Order Orchestration marks only the coordination workflow cancelled without cancelling the Order itself.

Warning

Both 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 and Notification APIServicev1.0.0Notification APIInternal background worker that consumes order commands from Kafka, renders MJML email templates, and submits mail over ...SubscribesPlaceOrderCommand, CancelOrderCommand +1APIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs consume Place orderCommandv1.0.0Place orderShared Finance order-placement command consumed by Notification to render and submit a new-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docs on the same topic. When a durable timeout reissues Place orderCommandv1.0.0Place orderShared Finance order-placement command consumed by Notification to render and submit a new-order email. Ownerplatform-engineering-teamSchemaDiagramOpen docs, both consumers receive the retry, which can generate an additional placement email.

Sends messages (5)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummaryChannels
Place order
v1.0.0commandShared Finance order-placement command consumed by Notification to render and submit a new-order email.
-
Acknowledge basket deletion completed
v1.0.0commandReports Finance's successful basket-cleanup outcome to Order API without changing the Order's business status.
-
Handle basket deletion failed
v1.0.0commandReports Finance's failed basket-cleanup outcome so Order API can soft-delete the affected Order.
-
Send order completed notification
v1.0.0commandShared Finance completion command consumed by Notification to render and submit a completed-order email.
-
Send order cancelled notification
v1.0.0commandShared Finance cancellation command consumed by Notification to render and submit a canceled-order email.
-

Receives messages (5)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummaryChannels
User checked out
v1.0.0eventReports that an Order was placed and its checkout details are ready for Finance coordination.
-
Order completed
v1.0.0eventReports that an Order transitioned from New to Completed.
-
Order cancelled
v1.0.0eventReports that an Order transitioned from New to Cancelled.
-
Basket deletion completed
v1.0.0eventIndicates that Basket successfully deleted the submitted basket during checkout cleanup.
-
Basket deletion failed
v1.0.0eventIndicates that Basket could not delete the submitted basket during checkout cleanup.
-

Architecture Visualizations & Specifications

Saga Coordination Context

Loading graph...

Service Interactions