---
title: "Architecture overview"
summary: "System context, container structure, and capability ownership for the BookWorm platform."
owners:
  - architecture-enabling-team
---

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.

<LikeC4View viewId="bookwormContext" project="deployment" />

## 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.

<LikeC4View viewId="bookwormCommerceContainers" project="deployment" />

### 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.

<LikeC4View viewId="bookwormAIAndPlatformContainers" project="deployment" />

### Ordering and operations

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

<LikeC4View viewId="bookwormOrderingAndOperations" project="deployment" />

## 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 block         | Responsibility                                                                               | Main elements                                 | Ownership boundary                                                                                            |
| :--------------------- | :------------------------------------------------------------------------------------------- | :-------------------------------------------- | :------------------------------------------------------------------------------------------------------------ |
| **Edge and frontends** | Provides the public entry point and customer and staff journeys.                             | API Gateway, Storefront, Commerce, Backoffice | Routes requests to capability owners; does not own authoritative catalog, basket, order, or feedback records. |
| **Catalog**            | Owns book information, pricing, and discovery.                                               | Catalog API, Catalog Ingestion                | Catalog records are authoritative here; search indexes and rating summaries are derived data.                 |
| **Shopping**           | Manages customer baskets before checkout.                                                    | Basket API                                    | Owns active basket state until checkout transfers purchase intent to Ordering.                                |
| **Ordering**           | Records accepted orders, purchase-time details, and official order status.                   | Ordering API, Finance                         | Ordering owns business outcomes; Finance tracks post-checkout workflow progress separately.                   |
| **Reviews**            | Manages customer feedback and makes review information available to other capabilities.      | Rating API                                    | Owns individual feedback; other capabilities may maintain derived summaries.                                  |
| **Conversational**     | Supports guided discovery and customer questions using bookstore information.                | Chat API, MCP Tools                           | Reads catalog and review information; does not create or change baskets or orders.                            |
| **Platform**           | Supports scheduled work and transactional email delivery.                                    | Scheduler, Notification                       | Delivery and job outcomes do not replace the business outcome recorded by an owning capability.               |
| **Shared foundation**  | Provides common hosting, identity integration, diagnostics, resilience, and privacy support. | Shared platform capabilities                  | Supports 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.

## Related architecture documentation

- [[doc|arc42]] — Navigate all arc42 chapters.
- [[doc|arc42/03-context-and-scope]] — Actors, external systems, and boundary exchanges.
- [[doc|arc42/05-building-block-view]] — Static decomposition and capability responsibilities.
- [[doc|arc42/06-runtime-view]] — Representative cross-capability runtime scenarios.
- [[doc|arc42/07-deployment-view]] — Hosting environments and infrastructure placement.
- [[doc|arc42/08-crosscutting-concepts]] — Shared contracts, security, resilience, and operating practices.
