Business capabilities and journey map
The core capabilities BookWorm delivers and how customer journeys cross the catalog, shopping, ordering, reviews, and platform domains.
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
| Capability | Owning bounded context | Primary edge app | Purpose |
|---|---|---|---|
| Product discovery and metadata | CatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...Ownercatalog-experience-teamDiagramOpen docs | Storefront, Backoffice | Maintain canonical titles, authors, categories, publishers, pricing, availability, and hybrid vector search |
| Basket and checkout intent | ShoppingDomainv1.0.0ShoppingCoordinates the customer basket and pre-purchase checkout intent, from selecting books through handing an accepted purch...Ownercommerce-fulfillment-teamDiagramOpen docs | Commerce | Manage mutable customer baskets and initiate checkout handoff |
| Order lifecycle management | OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs | Commerce, Backoffice | Record accepted purchases with locked prices and manage New → Completed / Cancelled transitions |
| Customer feedback and ratings | ReviewsDomainv1.0.0ReviewsCaptures individual customer feedback for books, publishes rating changes for Catalog discovery, and provides privacy-sc...Ownercatalog-experience-teamDiagramOpen docs | Storefront, Backoffice | Store individual customer ratings and comments in Cosmos DB and publish summary updates to Catalog |
| Conversational guidance | ConversationalDomainv1.0.0ConversationalRoutes BookWorm customer requests through privacy-filtered AI agents for catalog-backed book discovery and read-only sto...Ownerai-capabilities-teamDiagramOpen docs | Storefront | Route customer requests through privacy-filtered AI agents for book discovery and policy answers |
| Scheduling and notifications | PlatformDomainv1.0.0PlatformProvides cross-cutting capabilities for recurring scheduled triggers and durable, idempotent transactional email notific...Ownerplatform-engineering-teamDiagramOpen docs | Quartz 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/basketand submit checkout under/checkout/*. Shopping holds temporary intent in Redis, while Ordering validates current Catalog pricing and creates an authoritativeOrder; 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 individualFeedbackrecords in Cosmos DB and publishes Kafka events so Catalog refreshes its derivedRating 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 byMicrosoft-Decision-1through 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
| Decision | Benefits | Costs and limits |
|---|---|---|
| Eventually consistent derived views | Catalog browsing stays fast and available even if Reviews or Catalog Ingestion is busy | Rating summaries and Qdrant search vectors can briefly trail source writes |
| Operational delivery separated from business outcomes | SMTP outages or email retries never corrupt or roll back accepted Order records | Operators must monitor Notification delivery independently of Order status |
| Capability boundaries over screen-oriented services | Teams evolve pricing, checkout, and AI agents independently | Cross-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.
Related documentation
- Developer OnboardingCustom DocDeveloper OnboardingA Day 1 and Week 1 roadmap for understanding BookWorm, verifying a workspace, and making a first contribution.Ownerarchitecture-enabling-teamOpen doc — Contributor onboarding and platform introduction.
- Run BookWorm locallyCustom DocRun BookWorm locallyThe shortest path from a prepared machine to a responding local BookWorm application.Ownerarchitecture-enabling-teamOpen doc — Step-by-step tutorial to run BookWorm on your machine.
- BookWormDomainv1.0.0BookWormCore e-commerce domain for the BookWorm online bookstore, coordinating catalog discovery, customer baskets, order fulfil...Ownerarchitecture-enabling-teamDiagramRepositoryOpen docs — Strategic DDD map and deployable services.
- Domain principles and boundaries — Ownership rules and pre-change boundary gate.