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

Read the architecture guide →

Internal system that owns customer-scoped baskets throughout the pre-order journey, including basket management, Catalog-backed item presentation, and checkout cleanup coordination.

Internal

System Purpose & Boundary

The Cart System owns transient, customer-scoped shopping BasketEntityv1.0.0BasketCustomer-scoped, mutable pre-order collection of requested books and quantities managed prior to checkout.Ownercommerce-fulfillment-teamOpen docs state throughout the pre-order journey within the ShoppingDomainv1.0.0ShoppingCoordinates the customer basket and pre-purchase checkout intent, from selecting books through handing an accepted purch...Ownercommerce-fulfillment-teamDiagramOpen docs domain. It serves Customers creating, viewing, replacing, and clearing their active Basket ItemEntityv1.0.0Basket ItemChild entry within a Basket pairing a Catalog book identifier with a positive requested quantity.Ownercommerce-fulfillment-teamOpen docs selections. Product metadata and pricing (CatalogDomainv1.0.0CatalogCore BookWorm subdomain that makes books discoverable, purchasable, and consistently described across the customer journ...Ownercatalog-experience-teamDiagramOpen docs), accepted order history (OrderingDomainv1.0.0OrderingCreates durable Orders from a buyer's current basket, locks purchase-time pricing, and owns order lifecycle transitions ...Ownercommerce-fulfillment-teamDiagramOpen docs), and post-checkout orchestration (Finance SystemSystemv1.0.0Finance SystemInternal BookWorm workflow system that coordinates post-checkout basket cleanup and order notifications through Durable ...Ownercommerce-fulfillment-teamDiagramOpen docs) are explicitly out of scope.

Note

Basket DatabaseContainerv1.0.0Basket DatabaseAuthoritative Redis key-value store owned by the Shopping bounded context for customer-scoped pre-checkout shopping bask...Ownercommerce-fulfillment-teamDiagramOpen docs is authoritative only for active pre-order shopping intent—never for reconstructing accepted orders. Basket updates replace the entire item list rather than merging partial edits, and read responses enrich items with live Catalog titles and prices.

Contained Capabilities

Service / AgentRole in SystemPrimary Data StoreInteraction Style (Sync / Async)
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 docsServes customer HTTP basket endpoints, internal gRPC basket snapshots, and post-checkout cleanup handlersBasket DatabaseContainerv1.0.0Basket DatabaseAuthoritative Redis key-value store owned by the Shopping bounded context for customer-scoped pre-checkout shopping bask...Ownercommerce-fulfillment-teamDiagramOpen docsSync (HTTP/gRPC) & Async (Kafka)

External Interactions & Trust Boundaries

System Visualizations

System Context

Cart Context

Component Topology

Architecture Decisions

Architecture Decision Records (5)

Decisions that apply to this Cart System. Search, filter by status, or sort by clicking a column.
Summary
ADR-001: Use Redis as the authoritative basket storeAcceptedOct 21, 2026Redis is the authoritative store for active customer baskets, while accepted orders and Catalog data remain owned by their respective systems.
ADR-002: Scope each basket to the authenticated customerAcceptedOct 21, 2026Each customer has an independently addressed pre-order basket, and the Cart System does not expose a shared cart or own the resulting Order.
ADR-003: Replace the basket item collection on updateAcceptedOct 21, 2026Basket updates replace the complete item collection, with validation enforcing non-empty baskets and positive quantities.
ADR-004: Enrich basket items from Catalog at read timeAcceptedOct 21, 2026Basket persistence stores book references and quantities, while current book presentation data is resolved from Catalog when a basket is read.
ADR-005: Publish explicit basket cleanup outcomesAcceptedOct 21, 2026Checkout basket deletion publishes distinct completion and failure integration events so downstream workflows can recover deliberately.
  • 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 — End-to-end checkout and basket cleanup flow.
  • Checkout InteractionDiagramv1.0.0Checkout InteractionEnd-to-end checkout acceptance and independent basket cleanup, order email, and Finance timeout outcomes across Ordering...Ownercommerce-fulfillment-teamOpen diagram — Interaction between Shopping, Ordering, and Finance.
  • domains/bookworm/subdomains/shopping/engineering/basket-api-contracts — Basket API contracts and boundaries.
  • domains/bookworm/subdomains/shopping/guides/checkout-lifecycle — Pre-order to checkout handoff guide.