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

Read the architecture guide →

Architecture overview

System context, container structure, and capability ownership for the BookWorm platform.

BookWorm is an online bookstore for customers and store staff. This page summarizes the system boundary, deployable building blocks, and ownership rules; detailed context, runtime behavior, and hosting are described in the corresponding arc42 chapters.

Scope and reading the views

The platform includes customer and staff web experiences, business capabilities, background processing, and the shared foundation that supports them. Identity, AI inference, messaging, email delivery, and managed infrastructure are external dependencies where they are provided by other systems.

The views move from the whole system to its internal building blocks. The system context view focuses on users and external neighbors. The container views show the platform’s applications and services grouped by responsibility; they do not replace the detailed static, runtime, or deployment views.

System context

This view places BookWorm between the people who use the bookstore and the external services it depends on.

Container views

The following views group the deployable parts of BookWorm by capability. Together, they cover the customer-facing edge, commerce, discovery, reviews, ordering, and platform operations.

Edge and commerce capabilities

This view follows customer and staff traffic through the public entry point and into the storefront, basket, catalog, and ordering capabilities.

Discovery and platform capabilities

This view shows how conversational discovery, customer feedback, privacy support, scheduled work, and notification delivery relate to their supporting services and data.

Ordering and operations

This view focuses on order ownership, post-checkout coordination, and the operational services that support these workflows.

Capability ownership

Each capability owns its business rules and authoritative records. The table summarizes those boundaries; the Building Block View provides the full static decomposition.

Building blockResponsibilityMain elementsOwnership boundary
Edge and frontendsProvides the public entry point and customer and staff journeys.API Gateway, Storefront, Commerce, BackofficeRoutes requests to capability owners; does not own authoritative catalog, basket, order, or feedback records.
CatalogOwns book information, pricing, and discovery.Catalog API, Catalog IngestionCatalog records are authoritative here; search indexes and rating summaries are derived data.
ShoppingManages customer baskets before checkout.Basket APIOwns active basket state until checkout transfers purchase intent to Ordering.
OrderingRecords accepted orders, purchase-time details, and official order status.Ordering API, FinanceOrdering owns business outcomes; Finance tracks post-checkout workflow progress separately.
ReviewsManages customer feedback and makes review information available to other capabilities.Rating APIOwns individual feedback; other capabilities may maintain derived summaries.
ConversationalSupports guided discovery and customer questions using bookstore information.Chat API, MCP ToolsReads catalog and review information; does not create or change baskets or orders.
PlatformSupports scheduled work and transactional email delivery.Scheduler, NotificationDelivery and job outcomes do not replace the business outcome recorded by an owning capability.
Shared foundationProvides common hosting, identity integration, diagnostics, resilience, and privacy support.Shared platform capabilitiesSupports the business capabilities without becoming a shared owner of their domain records.

Architectural boundaries

  • Owned data and contracts: Each capability remains authoritative for its records. Other capabilities integrate through explicit HTTP, gRPC, or event contracts instead of reading another capability’s stores.
  • Synchronous and asynchronous work: Request-response calls support interactions that need an immediate result. Kafka events coordinate work across capabilities; projections and external side effects may complete later and require recovery handling.
  • Order state and workflow state: Ordering is the source of truth for accepted orders and their official status. Finance coordinates post-checkout work without redefining whether an order succeeded.
  • Read-only assistance: Conversational features use catalog and review information to provide guidance, but do not mutate commerce transactions.
  • External dependencies: Identity, AI inference, messaging, email delivery, and managed infrastructure can affect availability or behavior. Their interfaces and operational assumptions are detailed in the context and deployment chapters.
  • arc42 Architecture OverviewCustom Docarc42 Architecture OverviewEntry point to BookWorm's architecture, key boundaries, and supporting documentation.Ownerarchitecture-enabling-teamOpen doc — Navigate all arc42 chapters.
  • Context and ScopeCustom DocContext and ScopeBusiness and technical boundary of the complete BookWorm platform.Ownerarchitecture-enabling-teamOpen doc — Actors, external systems, and boundary exchanges.
  • Building Block ViewCustom DocBuilding Block ViewStatic decomposition of BookWorm into owned business capabilities, services, and shared foundations.Ownerarchitecture-enabling-teamOpen doc — Static decomposition and capability responsibilities.
  • Runtime ViewCustom DocRuntime ViewRepresentative BookWorm runtime scenarios across commerce, discovery, customer feedback, and platform operations.Ownerarchitecture-enabling-teamOpen doc — Representative cross-capability runtime scenarios.
  • Deployment ViewCustom DocDeployment ViewHosting environments, infrastructure boundaries, and workload placement.Ownerplatform-engineering-teamOpen doc — Hosting environments and infrastructure placement.
  • Crosscutting ConceptsCustom DocCrosscutting ConceptsShared security, integration, resilience, observability, AI governance, and verification practices across BookWorm.Ownerarchitecture-enabling-teamOpen doc — Shared contracts, security, resilience, and operating practices.