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

Read the architecture guide →

Business capabilities and journey map

The core capabilities BookWorm delivers and how customer journeys cross the catalog, shopping, ordering, reviews, and platform domains.

Guide

BookWorm organizes its online bookstore around six business capabilities aligned to bounded contexts rather than UI screens. Separating capabilities by business ownership lets product discovery, basket management, order processing, customer reviews, AI guidance, and operational messaging evolve independently while delivering one seamless shopping experience.

Context and motivation

When an e-commerce platform structures code around frontend screens, product rules, basket state, checkout pricing, and order status collapse into one coupled layer. A minor change to search filtering or email formatting then risks corrupting committed orders. BookWorm prevents this coupling by assigning each business capability a single owning context and connecting journeys across explicit HTTP, gRPC, MCP, A2A, and Kafka contracts.

How it works

This journey map shows how a customer moves through Storefront and Commerce while interacting with each underlying bounded context.

Loading graph...

Capability ownership map

CapabilityOwning bounded contextPrimary edge appPurpose
Product discovery and metadataCatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...Ownercatalog-experience-teamDiagramOpen docsStorefront, BackofficeMaintain canonical titles, authors, categories, publishers, pricing, availability, and hybrid vector search
Basket and checkout intentShoppingDomainv1.0.0ShoppingCoordinates the customer basket and pre-purchase checkout intent, from selecting books through handing an accepted purch...Ownercommerce-fulfillment-teamDiagramOpen docsCommerceManage mutable customer baskets and initiate checkout handoff
Order lifecycle managementOrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docsCommerce, BackofficeRecord accepted purchases with locked prices and manage New → Completed / Cancelled transitions
Customer feedback and ratingsReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docsStorefront, BackofficeStore individual customer ratings and comments in Cosmos DB and publish summary updates to Catalog
Conversational guidanceConversationalDomainv1.0.0ConversationalRoutes BookWorm customer requests through privacy-filtered AI agents for catalog-backed book discovery and read-only sto...Ownerai-capabilities-teamDiagramOpen docsStorefrontRoute customer requests through privacy-filtered AI agents for book discovery and policy answers
Scheduling and notificationsPlatformDomainv1.0.0PlatformProvides cross-cutting capabilities for recurring scheduled triggers and durable, idempotent transactional email notific...Ownerplatform-engineering-teamDiagramOpen docsQuartz Dashboard (/quartz)Trigger scheduled vector indexing and deliver transactional order emails without owning business state

Five end-to-end customer journeys

  • Discovery and selection: Shoppers browse and search titles in Storefront (@bookworm/storefront). Catalog is the single source of truth for book details, pricing, and availability; see Product IngestionFlowv1.0.0Product IngestionCatalog API persists product changes in PostgreSQL; Scheduler triggers Catalog Ingestion over Kafka every five minutes t...Ownercatalog-experience-teamView flowOpen docs and Search and discovery.
  • Basket and checkout: Authenticated shoppers manage items in Commerce (@bookworm/commerce) under /basket and submit checkout under /checkout/*. Shopping holds temporary intent in Redis, while Ordering validates current Catalog pricing and creates an authoritative Order; see User CheckoutFlowv1.0.0User CheckoutAn authenticated customer checks out a persisted basket through Ordering API; Finance coordinates asynchronous basket cl...Ownercommerce-fulfillment-teamView flowOpen docs.
  • Order confirmation and processing: Ordering manages the accepted order lifecycle, while Finance orchestrates post-checkout basket cleanup and triggers Notification email commands over Kafka; see Order Lifecycle and Status TransitionsFlowv1.0.0Order Lifecycle and Status TransitionsCheckout creates a New Order owned by Ordering API, Finance coordinates post-order cleanup and notifications, and explic...Ownercommerce-fulfillment-teamView flowOpen docs and Notification DeliveryFlowv1.0.0Notification DeliveryFinance emits order-notification commands over Kafka; Notification API applies Redis idempotency, renders MJML email tem...Ownerplatform-engineering-teamView flowOpen docs.
  • Reviews and trust signals: Shoppers submit ratings and comments to Rating API (Reviews), which persists individual Feedback records in Cosmos DB and publishes Kafka events so Catalog refreshes its derived Rating summary; see Customer Feedback Publication and ProjectionFlowv1.0.0Customer Feedback Publication and ProjectionRating API persists customer feedback in Cosmos DB and publishes an integration event; Catalog API updates the derived b...Ownercatalog-experience-teamView flowOpen docs.
  • Conversational assistance: Shoppers ask book discovery or store-policy questions via Storefront’s CopilotKit chat runtime (/ag-ui), routed by Microsoft-Decision-1 through read-only MCP tools and remote A2A review analysis; see Chat Agent OrchestrationFlowv1.0.0Chat Agent OrchestrationA customer submits a conversational request through Storefront; Chat API screens input, routes via a non-LLM classifier ...Ownerai-capabilities-teamView flowOpen docs.

Design trade-offs

DecisionBenefitsCosts and limits
Eventually consistent derived viewsCatalog browsing stays fast and available even if Reviews or Catalog Ingestion is busyRating summaries and Qdrant search vectors can briefly trail source writes
Operational delivery separated from business outcomesSMTP outages or email retries never corrupt or roll back accepted Order recordsOperators must monitor Notification delivery independently of Order status
Capability boundaries over screen-oriented servicesTeams evolve pricing, checkout, and AI agents independentlyCross-context journeys require explicit contracts and Pact verification

Alternatives considered

  • Screen-oriented Backend-for-Frontend (BFF) monolith: Simplifies initial CRUD screens but merges pre-order baskets, committed orders, and product catalogs into one blast radius.
  • Synchronous cross-domain writes: Guarantees immediate rating and vector consistency but couples Catalog availability directly to Reviews and Microsoft Foundry latency.